pseudo array properties

Jason House jason.james.house at gmail.com
Thu Jul 5 19:24:27 PDT 2007


Charlie wrote:
> That will be a serious loss.  This 'feature' was an awesome one, and a 
> shame it never made it into the specs.

Personally, I'd like to see it generalized to more than just arrays...


> 
> Derek Parnell wrote:
>> In V2, were we meant to lose the (undocumented) facility to have pseudo
>> properties for arrays?
>>
>> In other words, the code below compiled and ran for V1 but it doesn't for
>> V2.
>>
>> char[] foo(char[] a) { return a; }
>> void main()
>> {
>>     char[] q;
>>     q = q.foo;  // Invoke 'foo' as if it were a property.
>> }
>>
>>



More information about the Digitalmars-d mailing list