Page 1 of 1

[Implemented] TypeOf function (or Compiler Directive)

Posted: Sun Apr 04, 2010 11:19 pm
by somic
PB Team,

thank you for the PB 4.50 B2 and for your hard work.

I wish to take the opportunity to ask if you may consider to implement a function returning the type of a variable at runtime.
I've seen this has been already requested in the past.

Many thanks in advance for any attention you may give to this wish item and best regards,
Somic

Re: TypeOf / VarType function (or Compiler Directive)

Posted: Mon Apr 05, 2010 12:36 pm
by Melissa
I wish to take the opportunity to ask if you may consider to implement a function returning the type of a variable at runtime.
Seconded. Compile-time would be enough, however, 'cause it's impossible to change type of variable on runtime right now.

Re: TypeOf / VarType function (or Compiler Directive)

Posted: Mon Apr 05, 2010 8:34 pm
by Trond
I wish to take the opportunity to ask if you may consider to implement a function returning the type of a variable at runtime.
Type information isn't available at runtime. It's discarded when the program is compiled. It's not anywhere in your executable.

Re: TypeOf / VarType function (or Compiler Directive)

Posted: Wed Apr 07, 2010 6:03 pm
by somic
ok,
sorry for the improper wording and thank you for remarking the difference.

Compiletime would be ok for me too. [:-]

Rgds,