UFCS syntax I never saw before.

Steven Schveighoffer schveiguy at yahoo.com
Mon May 21 14:19:35 UTC 2018


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


More information about the Digitalmars-d-learn mailing list