Graal Forums  

Go Back   Graal Forums > Development Forums > Future Improvements
FAQ Members List Calendar Today's Posts

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 06-23-2006, 11:19 AM
JustBreathe JustBreathe is offline
Registered User
Join Date: Jun 2006
Posts: 59
JustBreathe is on a distinguished road
Universal class

Perhaps it would be interesting to make a universal class, joined by every object...

Such would allow functions such as these:

PHP Code:
public function isNumeric()
  {
  if ( 
this.objectType() != "TGraalVar" )
    return 
false;

  
// Missing count .'s [ 1.2.25 != Numeric, but still passes this Numeric check]
  
for ( 0this.length(); ++ )
    if ( !(
this.substring(i,1in {"1","2","3","4","5","6","7","8","9","0","."} ))
      return 
false;

  return 
true;
  } 
Maybe name the class 'global', 'universal', or... Maybe have it based on the Object Type?

TGraalVar would join class TGraalVar... TStaticVar would join class TStaticVar?

Maybe make an init phase so that you could do something like:

PHP Code:
class TStaticVar:

function 
onClassJoined()
  {
  
join"TGraalVar" );
  } 
OR! Make it follow the Object Tree given in:
http://wiki.graal.net/index.php/Crea...F_Object_Types

Example:

GuiArrayControl would join classes:
GuiArrayControl, GuiControl, and TGraalVar
Reply With Quote
  #2  
Old 06-23-2006, 11:09 PM
Admins Admins is offline
Graal Administration
Join Date: Jan 2000
Location: Admins
Posts: 11,693
Admins has much to be proud ofAdmins has much to be proud ofAdmins has much to be proud ofAdmins has much to be proud ofAdmins has much to be proud ofAdmins has much to be proud of
Joining classes means some overhead in the execution of scripts (and more network traffic since it needs to tell the clients when an object joins a class). You can let the objects join those classes manually though?
Reply With Quote
  #3  
Old 06-24-2006, 05:18 PM
calani calani is offline
Scriptess
calani's Avatar
Join Date: Aug 2003
Location: asmgarden.gmap
Posts: 606
calani is on a distinguished road
Send a message via AIM to calani
Nice idea, but, is there really a point?
__________________
Reply With Quote
  #4  
Old 06-24-2006, 06:57 PM
JustBreathe JustBreathe is offline
Registered User
Join Date: Jun 2006
Posts: 59
JustBreathe is on a distinguished road
Adding more functions to the client itself.

If they all add a class ( of set name ) to every single thing, wouldn't it be mundane to tell it joined a class that it is already aware that it would join it no matter what?

Briefly: If they joined a predefined name, it wouldn't need to tell it joined that class, because everything joins it. ( so they can consider they joined the universal class(es) without actually telling everyone about it )
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 05:12 PM.


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