Page 1 of 1

Requested before, but not found (SizeOf())

Posted: Thu Aug 07, 2008 11:38 am
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
:?: