Scope of Mixins

Adam D Ruppe destructionator at gmail.com
Thu Aug 26 20:02:48 UTC 2021


On Thursday, 26 August 2021 at 19:31:54 UTC, DLearner wrote:
>    if (typeof(v).stringof == "int" ) {

Tip: you can instead of string of do

if (is(typeof(v) == int))


That is operator lets you compare types directly.

(stringof is something you will almost never use as you learn 
more of the language)


More information about the Digitalmars-d-learn mailing list