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 1,964 of 2,753   
   Hans-Peter Diettrich to noitalmost   
   Re: language design implications for var   
   25 Dec 10 16:19:02   
   
   From: DrDiettrich1@aol.com   
      
   noitalmost schrieb:   
      
   > I'm trying to keep my language (and compiler) fairly small, is there a good   
   > case for variant records, or could everything be handled through classes   
   > without too much inconvenience to the user programmer?   
      
   Variant records can simplify memory management of polymorphic data,   
   eliminating additional class instances (=heap objects) when embedded in   
   other objects, and can reduce the number of new/additional objects   
   during type conversions. External libraries (databases, COM) can use   
   polymorphic records as arguments, so that such a feature may be a MUST   
   for using such APIs. Otherwise every programmer should be happy with   
   more type-safe polymorphic classes.   
      
   DoDi   
      
   --- 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