'final' variables

Derek Parnell derek at nomail.afraid.org
Tue Mar 20 16:36:01 PDT 2007


On Tue, 20 Mar 2007 18:19:29 -0600, Chris Nicholson-Sauls wrote:

> If you wanted to absolute guarantee that 'f' itself never changes, and the underlying 
> object does likewise, it'd be: final invariant Foo f;

At which point I'd wish for a text macro system to make "guard" the alias
for "final invariant" <G>

   guard Foo f;

-- 
Derek
(skype: derek.j.parnell)
Melbourne, Australia
"Justice for David Hicks!"
21/03/2007 10:34:41 AM



More information about the Digitalmars-d mailing list