Is .type a method?

Hi: given

var x:int;

… x.type …

is .type a method? the docs call it a “query”.



Hi Nelson,

No, .type is not a method. EXPR.type is a special kind of expression. Similar in spirit to cast, for example, which is a kind of expression and not a function call (at least syntactically speaking).

Let us know if you need more clarifications.


thanks! :slight_smile: