Extending "scope"
Brian White
bcwhite at pobox.com
Sun Apr 6 07:42:28 PDT 2008
>> What do others think about extending "scope" to allow it to be applied to
>> member data? They would by default be set to "null" but have the
>> requirement that they must be set exactly once in the constructor and
>> nowhere else. They would also be deleted automatically during the
>> destructor.
>
> I think you're the 318th person to suggest this. I might be talking out of
> you-know-where but I think I remember Walter mentioning that this is in the
> cards for D2.
Well... I'm fairly new here. :-)
If it's in the cards for D2, it's not currently implemented there since
that's the compiler I'm using.
I forgot to mention that of course only scope classes could have scope
members, but I think that's fairly obvious.
-- Brian
More information about the Digitalmars-d
mailing list