Extended Type Design.

Daniel Keep daniel.keep.lists at gmail.com
Fri Mar 16 18:38:16 PDT 2007



Walter Bright wrote:
> Derek Parnell wrote:
>> Given ...
>>
>>    int[int**][]*[char[]][3][17][3,17]* x;
>>
>> and I want to make the 'x' immutable and the 'char[]' immutable, how does
>> one write the declaration? Where does one place the
>> 'final'/'const'/'super
>> const' and where do the parenthesis go?
> 
> final int[int**][]*[ const(char[]) ][3][17][3,17]* x;

Hmm... I think either one of you (Walter and Andrei) got bitten by the
"you have to put parens around the type or it'll get final'ed, too"
thing, or one of you got bitten by the "is this going to make it final?
 Jeeze, I dunno; better put parens in just in case."

This makes me somewhat worried :P

	-- Daniel

-- 
Unlike Knuth, I have neither proven or tried the above; it may not even
make sense.

v2sw5+8Yhw5ln4+5pr6OFPma8u6+7Lw4Tm6+7l6+7D
i28a2Xs3MSr2e4/6+7t4TNSMb6HTOp5en5g6RAHCP  http://hackerkey.com/



More information about the Digitalmars-d mailing list