Is .type a method?

Hi: given

var x:int;

… x.type …

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

thanks,

Nelson

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.

Vass

thanks! :slight_smile: