UFCS syntax I never saw before.

aliak something at something.com
Tue May 22 10:13:11 UTC 2018


On Monday, 21 May 2018 at 14:19:35 UTC, Steven Schveighoffer 
wrote:
> On 5/21/18 8:15 AM, SrMordred wrote:
>> Right, so this should´n be working I think.
>> 
>>> struct SomeStruct
>>> {
>>>     void foo(int);
>>> }
>>>
>>> SomeStruct s;
>>> s.foo = 10;
>> 
>> I thought that only with @property this will work.
>> 
>
> That was the plan, but it got derailed.
>
> Whoever wrote that original line of code, they need a stern 
> talking-to.
>
> -Steve

While wearing the naughty pointy hat and sitting in a corner :p


More information about the Digitalmars-d-learn mailing list