opCall with struct alias this

Patric Dexheimer via Digitalmars-d-learn digitalmars-d-learn at puremagic.com
Fri May 5 06:50:59 PDT 2017


On Friday, 5 May 2017 at 13:19:03 UTC, Adam D. Ruppe wrote:
> On Friday, 5 May 2017 at 13:05:35 UTC, Patric Dexheimer wrote:
>> [...]
>
> You should never use static opCall. They are ambiguous with 
> non-static opCall as well as with constructors. It is a buggy 
> mess that should never have been in the language in the first 
> place.
>
> [...]


It make sense. Even liking of the possibilities of static opCall.
But I believe that somethings must exist to evade opCall usages 
now
like empty params ctor on structs.


More information about the Digitalmars-d-learn mailing list