any news on const/invariant?

Walter Bright newshound1 at digitalmars.com
Thu Nov 29 01:06:32 PST 2007


Derek Parnell wrote:
> Is this supposed to compile? I can't get it to work. 
> 
> For the source line ...
> 
>   const(const(int*) f()){}
> 
> 
> I get the message ...
> 
> test.d(3): unexpected identifer 'f' in declarator
> test.d(3): no identifier for declarator const(int*)()

Uh, you're right. You can't put the identifier inside a declarator.



More information about the Digitalmars-d mailing list