Scope of Mixins

Adam D Ruppe destructionator at gmail.com
Thu Aug 26 17:06:55 UTC 2021


On Thursday, 26 August 2021 at 17:01:06 UTC, DLearner wrote:
> The object was to take a variable, and do alternative things 
> with it depending on (say) whether it was an 'int' or an 'int*'.

That's *very* easy to do with the alias. You can just check 
`typeof(v)` in there.


More information about the Digitalmars-d-learn mailing list