[Implemented] TypeOf function (or Compiler Directive)

Got an idea for enhancing PureBasic? New command(s) you'd like to see?
somic
User
User
Posts: 66
Joined: Sun Jun 29, 2008 9:11 am
Location: Italy
Contact:

[Implemented] TypeOf function (or Compiler Directive)

Post 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
----------------------------------------------------------------------------
Semel in anno licet insanire (Seneca)
email: somic@libero.it, website: http://www.semelinanno.com
User avatar
Melissa
User
User
Posts: 71
Joined: Tue Sep 22, 2009 3:13 pm

Re: TypeOf / VarType function (or Compiler Directive)

Post 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.
Trond
Always Here
Always Here
Posts: 7446
Joined: Mon Sep 22, 2003 6:45 pm
Location: Norway

Re: TypeOf / VarType function (or Compiler Directive)

Post 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.
somic
User
User
Posts: 66
Joined: Sun Jun 29, 2008 9:11 am
Location: Italy
Contact:

Re: TypeOf / VarType function (or Compiler Directive)

Post by somic »

ok,
sorry for the improper wording and thank you for remarking the difference.

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

Rgds,
----------------------------------------------------------------------------
Semel in anno licet insanire (Seneca)
email: somic@libero.it, website: http://www.semelinanno.com
Post Reply