|
Re: [elfdata] ElfDataDictionary inside an ElfDataDictionary
On 1 Sep 2006, at 07:39, Ronald Vogelaar wrote:
>
> Hi Theo,
>
> I was just wondering, If I store an ElfDataDictionary in another
> ElfDataDictionary, like so:
>
> Dim ed As ElfData
> Dim d, e As ElfDataDictionary
> d=New ElfDataDictionary
> e=New ElfDataDictionary
>
>
> ed="somekey"
>
> e.Value(ed)=d
>
>
> ...if I were then to access ElfDataDictionary d (within e), do I
> have access to it directly, or is a copy created every time I
> access it?
>
>
> Dim i As Integer
> i=ElfDataDictionary(e.Value(ed)).Count
Of course you can :) Everything is stored as an object reference just
like any other object variable in RB.
Just curious what are you using this for?
Another idea could be to use prefixes. So instead of storing
something in a subdictionary, store it with a prefix. Maybe: e.Value
("d.somekey") = Something
Could save creating extra objects.
|