pseudo array properties
Charlie
charlie.fats at gmail.com
Thu Jul 5 19:31:45 PDT 2007
> Personally, I'd like to see it generalized to more than just arrays...
Yes me too. I guess we now have to convice Andrei , who will in turn
convince Walter, since Walter has been ignoring our pleads lately.
Jason House wrote:
> 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