View Single Post
  #4  
Old 01-21-2008, 09:55 PM
Tolnaftate2004 Tolnaftate2004 is offline
penguin.
Join Date: Jul 2004
Location: Berkeley, CA
Posts: 534
Tolnaftate2004 is a jewel in the roughTolnaftate2004 is a jewel in the rough
Send a message via AIM to Tolnaftate2004
C/C++ struct functionality can be replicated.
PHP Code:
function somestruct() {
  
temp.var = new TStaticVar();
  
with (temp.var) {
    
// definitions
  
}
  return 
temp.var;
}
somestruct(); 
vs.
PHP Code:
typedef struct {
  
// definitions
somestruct;
somestruct A
C++ classes, however, cannot be fully replicated (though I intended to request something that would... And then my computer died).

Classes in GS2 can be thought of as a mixture of #include and a class declaration. Joining a class gives access to its code and in ambiguous situations, should be called like class::func();.

I know jack about java, though. Sorry if this isn't a good explanation, it's very hard to type on an iPod.
__________________
◕‿‿◕ · pfa · check yer syntax! · src

Killa Be: when i got that locker in 6th grade the only thing in it was a picture of a midget useing a firehose :/

Last edited by Tolnaftate2004; 01-22-2008 at 07:06 AM..
Reply With Quote