no, that is not what I am looking for...
I know you can define a type and use that all over, and just change the type at some point and all
will follow..
I just would like the compiler to give me at declaration time the TYPE of a variable name elsewhere,
all I need to do is just specify it..
The other day I wanted to create a local array with a type of an item in a record, This array
was to be used as a type case over the record, but then I got thinking, what if one day I change that
type then the array would not have the correct casting type...
This record in question has a group of LongInt, but it could turn into Int64 one day.. so the idea is
to simply have the compiler supply the immediate type of a variable I reference so I can be sure the
array created is proper at that point..
I don't fancy the idea of using generics because it totally difference interface, on that does not
fit my fancy and code generation.
In C++ you can do this, create a Variable using another variable as the type..
can't remember now how that was done but I used to do it..
I'll live with it for now..
thanks
.