Stripping away const/invariant in D 2.0
Daniel Keep
daniel.keep.lists at gmail.com
Tue Aug 28 03:26:31 PDT 2007
Bruno Medeiros wrote:
> Use "typeof(T)". For example if T is invariant char , then typeof(T) ==
> char. typeof() kinda works like a declaration, so it removes the top
> level const/invariant.
That's... weird. But it works. Thanks very muchly :)
I still think having something a little more... consistent with existing
idioms would be good, though.
-- Daniel
More information about the Digitalmars-d
mailing list