January 03, 2012 Re: Properties | ||||
|---|---|---|---|---|
| ||||
On Wednesday, January 04, 2012 00:34:48 Manu wrote:
> myArray.popFront ... a property!?
>
> no.
And it won't compile that way if you compile with -property. It's just that properties used to be implemented much more haphazardly, allowing any function with no arguments to be called without parens. We've been transitioning from that to @property, but it's not fully enforced yet. -property enables the enforcement.
- Jonathan M Davis
| ||||
January 04, 2012 Re: Properties | ||||
|---|---|---|---|---|
| ||||
Attachments:
| Lovely! Precisely what I hoped to hear :P
On 4 January 2012 01:39, Jonathan M Davis <jmdavisProg@gmx.com> wrote:
> On Wednesday, January 04, 2012 00:34:48 Manu wrote:
> > myArray.popFront ... a property!?
> >
> > no.
>
> And it won't compile that way if you compile with -property. It's just that
> properties used to be implemented much more haphazardly, allowing any
> function
> with no arguments to be called without parens. We've been transitioning
> from
> that to @property, but it's not fully enforced yet. -property enables the
> enforcement.
>
> - Jonathan M Davis
>
| |||
Copyright © 1999-2021 by the D Language Foundation
Permalink
Reply