Requested before, but not found (SizeOf())

Got an idea for enhancing PureBasic? New command(s) you'd like to see?
User avatar
Psychophanta
Always Here
Always Here
Posts: 5153
Joined: Wed Jun 11, 2003 9:33 pm
Location: Anare
Contact:

Requested before, but not found (SizeOf())

Post by Psychophanta »

I requested this time ago, but is not found now.
It is for parameter where is a type instead a variable. The goal is to differenciate it and to make thing easier.
From manual about SizeOf():
Note: if a variable and a structure have the same name, the structure will have the priority over the variable.

Code: Select all

Debug SizeOf(word)
word.l
Debug SizeOf(word)
Now it returns '2' for the both; which is buggy imo, or at least a limitation.
What about to do:

Code: Select all

Debug SizeOf(.word); <- for type name
Debug SizeOf(word); <- for variable name
:?:
http://www.zeitgeistmovie.com

while (world==business) world+=mafia;