@property needed or not needed?
deadalnix
deadalnix at gmail.com
Sat Dec 1 23:02:33 PST 2012
On Sunday, 2 December 2012 at 06:58:12 UTC, Jonathan M Davis
wrote:
> On Sunday, December 02, 2012 07:49:52 deadalnix wrote:
>> And what do you think about map!(x => x * x) = generator(x, y,
>> z)
>> ?
>
> What's that even supposed to mean? map has been given no
> function argument
> either as UFCS or with a normal function call, so it's not
> being called. And
> even if it were, it wouldn't result in an lvalue, so putting it
> on the left of
> an assignment makes no sense. I have no idea what you're trying
> to do here.
>
I want to express that regular function are really different than
regular function calls. If map had to behave like a property,
then the code above would be correct, and 100% equivalent to
Andrei's snippet.
More information about the Digitalmars-d
mailing list