[lazarus] "Variant" variable ?
dvortex
dvortex at netcourrier.com
Wed Apr 26 15:38:38 EDT 2000
2 things:
Where is TVarRec declared ?
(so i can start from there and overload it ... --hehehe i love that
word--)
Can someone tell me if this is correct:
Load typinfo.pp from ./rtl/objpas.pp
go to line 90
this is the declaration of a type called TTypeData (if i read this right).
The first line under (line 91) is a case statement (sort of like what i
asked earlier). i do not understand how this works. it doesn't make any
sense to me. i visualize this as having a record that has different
property depending of the value of one.
for instance, if mastervalue is "175" then there will also be a property
called "subvalue" of a certain type, which would be different is
mastervalue had a different value. In this case (the typinfo.pp), i don't
see the "mastervalue" element/property...
someone care to spend some time to explain to me this ?
Thanks :o)
---
Nothing is foolproof to a sufficiantly talented fool.
On Wed, 26 Apr 2000, Michael Van Canneyt wrote:
>
>
> On Wed, 26 Apr 2000, dvortex wrote:
>
> > I just found a type "variant" in typinfo as "pointer"
> >
> > I'm going to get my own class to do this, it will be a little more "clean"
> > we will see.
>
> Actually, the best and easiest would be to use TVarRec and use overloaded
> operators. This can then
> 1) Be used immediatly.
> 2) Be inserted in the compiler at a later stage with little effort.
>
> It was on my todo list to start this after we release 1.0, but if you can do the
> overloaded stuff already, then this would definitely get used.
>
> Using the overloaded stuff means that all Delphi expressions using variants would work.
>
> Michael.
>
> _________________________________________________________________
> To unsubscribe: mail lazarus-request at miraclec.com with
> "unsubscribe" as the Subject
> archives at http://www.miraclec.com/list_archives/lazarus
>
More information about the Lazarus
mailing list