Graal Forums  

Go Back   Graal Forums > Graal V6 forums > Announcements
FAQ Members List Calendar Today's Posts

Reply
 
Thread Tools Search this Thread Rating: Thread Rating: 10 votes, 4.60 average. Display Modes
  #1  
Old 04-14-2013, 02:08 PM
Crono Crono is offline
:pluffy:
Join Date: Feb 2002
Location: Sweden
Posts: 20,000
Crono has a reputation beyond reputeCrono has a reputation beyond reputeCrono has a reputation beyond reputeCrono has a reputation beyond reputeCrono has a reputation beyond reputeCrono has a reputation beyond reputeCrono has a reputation beyond reputeCrono has a reputation beyond reputeCrono has a reputation beyond reputeCrono has a reputation beyond reputeCrono has a reputation beyond repute
Quote:
Originally Posted by Loriel View Post
I dunno how offline development would even work anymore
it won't ;[
__________________
Reply With Quote
  #2  
Old 04-14-2013, 05:47 PM
scriptless scriptless is offline
Banned
Join Date: Dec 2008
Location: N-Pulse
Posts: 1,412
scriptless is a splendid one to beholdscriptless is a splendid one to beholdscriptless is a splendid one to beholdscriptless is a splendid one to behold
Quote:
Originally Posted by Crono View Post
it won't ;[
Yeah it wouldn't. A lot of things are now being done on serverside. For example if you tried taking GK offline, it would not work since most of it is serverside script and we do not have a NPC Server to use in combination to the level editor.
Reply With Quote
  #3  
Old 06-21-2013, 04:38 PM
Cubical Cubical is offline
Banned
Join Date: Feb 2007
Posts: 1,348
Cubical has a brilliant futureCubical has a brilliant futureCubical has a brilliant futureCubical has a brilliant futureCubical has a brilliant futureCubical has a brilliant futureCubical has a brilliant future
Quote:
Originally Posted by wiki.graal.net
So we have a few advantages:

Helps to write code which is more reliable and readable
The structure of objects can be analyzed for automatic script documentation
Dependencies can be analyzed so you can know which scripts access an object or function
We can make scripts running much faster (not right now but in the future
GraalScript3 can be converted to other languages and platforms, we are preparing something interesting for this to show in a few weeks
@Stefan While you're actively reviewing this thread can you elaborate on this and what you're preparing that's interesting?

Last edited by Cubical; 06-21-2013 at 04:49 PM..
Reply With Quote
  #4  
Old 06-24-2013, 01:16 AM
Twinny Twinny is offline
My empire of dirt
Twinny's Avatar
Join Date: Mar 2006
Location: Australia
Posts: 2,422
Twinny is just really niceTwinny is just really nice
Send a message via AIM to Twinny
Hey Julien/Stefan,

Any update on my class extending problem? http://forums.graalonline.com/forums...9&postcount=90

Also, will overloading functions be supported?
Reply With Quote
  #5  
Old 06-24-2013, 08:06 AM
Julien Julien is offline
Registered User
Join Date: Jun 2013
Posts: 8
Julien is on a distinguished road
Hello,

GS3 is currently emulating classes using only GS2 features.
While the GS3 syntax already support constructors, getters / setters, inheritance, classes can only be used as containers as for now.

You can only define simple classes with members initialization but functions do not work yet.

Example:
PHP Code:
class Animal extends TStaticVar {
  var 
name string;
  var 
canBreathe boolean true;
}

class 
Dog extends Animal {
  var 
canBark boolean true;
}

function 
onCreated() : void {
  var 
dog Dog = new Dog();
  
dog.name "Woof";
  echo(
dog.canBark); // 1 (true)
  
echo(dog.canBreathe); // 1 (true)

Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +2. The time now is 11:19 PM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2026, vBulletin Solutions Inc.
Copyright (C) 1998-2019 Toonslab All Rights Reserved.