Why there are no 'physical' object variables (only references)?

Sean Kelly sean at f4.ca
Sun Sep 10 09:01:07 PDT 2006


Kristian wrote:
> 
> Hmm, what if structures could have interfaces and 
> constructors/destructors... and what the heck, inheritance too? Hehheh, 
> this way we would have 'physical classes' for local use and 'reference 
> classes' for global use.

It will never happen :-)  Though ctor support would be nice, at the very 
least.  That would simplify initialization and eliminate the need for 
the static opCall trick.


Sean



More information about the Digitalmars-d mailing list