pseudo array properties

Derek Parnell derek at nomail.afraid.org
Thu Jul 5 19:18:02 PDT 2007


On Fri, 6 Jul 2007 11:52:38 +1000, 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.
> }

Ok, maybe I got this wrong 'cos I can't get it to run in V1 either. Didn't
we used to be able to do this?

-- 
Derek
(skype: derek.j.parnell)
Melbourne, Australia
6/07/2007 12:17:14 PM



More information about the Digitalmars-d mailing list