pseudo array properties

Charlie charlie.fats at gmail.com
Thu Jul 5 18:54:29 PDT 2007


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

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