home bbs files messages ]

Forums before death by AOL, social media and spammers... "We can't have nice things"

   comp.compilers      Compiler construction, theory, etc. (Mod      2,753 messages   

[   << oldest   |   < older   |   list   |   newer >   |   newest >>   ]

   Message 2,073 of 2,753   
   vincent_belliard to All   
   where to take an object address?   
   13 Sep 11 09:23:45   
   
   From: vincent@famillebelliard.fr   
      
   Hello,   
      
   In many languages, when you allocate an object, the first byte of the   
   object is the first byte allocated. However, when the object carries   
   virtual information (for example a pointer on a virtual table), the   
   first byte of the object data is not the first byte allocated.   
      
   In Entity (http://code.google.com/p/entity-language), the object   
   address is in the middle of the object. That means that the object   
   address is between the virtual data and the object data.   
      
   With this, a reference on an object or the reference on the data have   
   the same value.   
      
   As with other object oriented languages you can extend classes (adding   
   some field) but you can also extend the virtual part.   
      
   You can find a documentation of this here:   
   http://code.google.com/p/entity-language/wiki/objects_addresses   
      
   Vincent Belliard   
      
   --- SoupGate-Win32 v1.05   
    * Origin: you cannot sedate... all the things you hate (1:229/2)   

[   << oldest   |   < older   |   list   |   newer >   |   newest >>   ]


(c) 1994,  bbs@darkrealms.ca