Search the web
Sign In
New User? Sign Up
elfdata
? Already a member? Sign in to Yahoo!

Yahoo! Groups Tips

Did you know...
Real people. Real stories. See how Yahoo! Groups impacts members worldwide.

Best of Y! Groups

   Check them out and nominate your group.
Having problems with message search? Fill out this form to ensure your group is one of the first to be migrated to the new message search system.

Messages

  Messages Help
Advanced
ElfDataDictionary inside an ElfDataDictionary   Message List  
Reply | Forward Message #39 of 450 |
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.



Fri Sep 1, 2006 8:24 am

boytheouk
Offline Offline
Send Email Send Email

Forward
Message #39 of 450 |
Expand Messages Author Sort by Date

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...
Ronald Vogelaar
enter@...
Send Email
Sep 1, 2006
6:39 am

... 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? ...
Theodore H. Smith
boytheouk
Offline Send Email
Sep 1, 2006
8:25 am

Yes, I knew I could, I just wanted to know if the object was unnecessarily copied when accessing the subdictionary. So, it's really an object reference, and...
Ronald Vogelaar
enter@...
Send Email
Sep 1, 2006
9:26 am
Advanced

Copyright © 2009 Yahoo! Inc. All rights reserved.
Privacy Policy - Terms of Service - Guidelines - Help