Typedef.toString?

Meta jared771 at gmail.com
Fri Feb 23 15:26:02 UTC 2018


On Friday, 23 February 2018 at 13:56:35 UTC, Denis F wrote:
> On Thursday, 22 February 2018 at 20:26:17 UTC, Meta wrote:
>
>>> find all this inclusions.  Maybe it is need to implement 
>>> simple toString method inside of Typedef struct? Or just 
>>> disable it at all?
>>
>> Yes. I doubt this behaviour is intended, so it's likely an 
>> oversight in Typedef's implementation.
>
> Should be disabled also:
>
> factory
> opCmp
> opEquals
> toHash
>
> ?

No, Typedef just needs a custom implementation of `toString`.


More information about the Digitalmars-d mailing list