Graal Forums  

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

Reply
 
Thread Tools Search this Thread Rating: Thread Rating: 10 votes, 4.60 average. Display Modes
  #1  
Old 04-13-2013, 04:10 AM
Gos_pira Gos_pira is offline
Registered Pirate Ghost
Gos_pira's Avatar
Join Date: Sep 2009
Location: Pirate Ghost Ship
Posts: 175
Gos_pira is a splendid one to beholdGos_pira is a splendid one to beholdGos_pira is a splendid one to beholdGos_pira is a splendid one to beholdGos_pira is a splendid one to behold
Quote:
Originally Posted by Elk View Post
So technically you can connect to PC Graal via Browser with a proper Login?
I think he means that porting scripts between script engines would be easier with these changes. Unless I just misunderstood what you meant.
Reply With Quote
  #2  
Old 04-13-2013, 05:05 AM
Gamerkid7 Gamerkid7 is offline
Registered User
Join Date: May 2006
Posts: 10
Gamerkid7 is an unknown quantity at this point
I agree with fowlplay4 and Gos_pira. I much prefer a Java-like syntax. The type declarations of the proposed GS3 just looks clunky and is needlessly different than common languages.

One feature that I would love to see is proper closures. Anonymous functions are great but don't maintain any context. This would make utility libraries extremely versatile. For example, a remove_if() method that takes a list and predicate function:

PHP Code:
function void removeIDs(int [B]rem_id[/B]) {
    
remove_if(this.idlist, function bool (int obj_id) {
       if (
obj_id == [B]rem_id[/B])
           return 
true;
       return 
false;
    });
    
UpdateDiplay();  

Then the code for remove_if only has to be maintained in one place and it would be a lot easier to figure out what a piece of code is doing from the functions being called.

Last edited by Gamerkid7; 04-13-2013 at 07:50 PM.. Reason: void->bool
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

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:30 AM.


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