RE: Saving list and pointers_2

From: Campbell, Robert D (UK) <"Campbell,>
Date: Mon, 01 Mar 2004 12:13:07 +0000

----boundary-LibPST-iamunique-320709160_-_-
Content-type: text/plain


> What I wanted to say in my first message, is that in Java you
> don't have to
> go node by node saving each node to save a Fifo queue. It's
> quite easy.
> Well, the question, then is:
>
> Is there a way to save a queue to disk without going node by
> node saving
> each node?
>
> Thanks in advance.


Yes & no.

If your 'nodes' are an extension of Stores.Store the
traversing is done for you, and all you have to do
is write a simple (ie not directly recursive)
Externalize for your node.

Traversing a list by hand is easy enough to do yourself.
Where Stores is clever is that it can handle arbitrary
reentrant net structures. This is a great saving in
complexity and reliability for saving/copying complex
dynamic data structures.

Robert

********************************************************************
This email and any attachments are confidential to the intended
recipient and may also be privileged. If you are not the intended
recipient please delete it from your system and notify the sender.
You should not copy it or use it for any purpose nor disclose or
distribute its contents to any other person.
********************************************************************
--------------------------------------------

To unsubscribe from this mailing list, send a message containing the word "unsubscribe" to:
   blackbox-request{([at]})nowhere.xy

To get a list of valid e-mail commands and instructions on their usage, send a message containing the word "help" to the above address.

Send any problem reports or questions related to this email list to the list owner at
   owner-blackbox{([at]})nowhere.xy

Current posting policy:

a) To post you should use the same address by which you are subscribed to the mailing list. That way, the list server will recognize you as subscriber and forward your posting immediately, without creating any overhead.

b) If, for some reason, you cannot post from the address, by which you are subscribed, your message will be moderated to avoid spam. Please understand that moderation will often cause some delay, in particular over weekends or holydays.



----boundary-LibPST-iamunique-320709160_-_-
Content-type: application/rtf
Content-transfer-encoding: base64
Content-Disposition: attachment; filename="rtf-body.rtf"

e1xydGYxXGFuc2lcYW5zaWNwZzEyNTJcZnJvbXRleHQgXGRlZmYwe1xmb250dGJsDQp7XGYwXGZz
d2lzcyBBcmlhbDt9DQp7XGYxXGZtb2Rlcm4gQ291cmllciBOZXc7fQ0Ke1xmMlxmbmlsXGZjaGFy
c2V0MiBTeW1ib2w7fQ0Ke1xmM1xmbW9kZXJuXGZjaGFyc2V0MCBDb3Vya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