Re: Too complex!!!!!!!!!

new topic     » goto parent     » topic index » view thread      » older message » newer message

Lucius wrote:

> I wrote the function so that sequences would be
> eaiser to write to a file.
>
> Then I could retrieve them from the file.
> BUT I need to be able to reconstruct the
> original sequences.

You lose the structure after converting and need meta
information (=information about Information).

> This function creates a sequence that contains
> all the required information for recreating

{{structure info},{structure data}}

> the Original sequence. I just haven't figured
> out how to the use the information to recreate
> it.

I think you have to keep track of the type you are converting, the
structure size and the nesting depth of the structure. Maybe is
recursive behavour not the solution. Use a stack (sequence) where
you keep your information of how deep, how much and type.

If I'm wrong correct me, it's for me a test if I understand your
problem. I imagine it as a database. You can store the data but you
need information were to start and end and what kind information you
are reading. This is always put in the header of a database file.

MK

new topic     » goto parent     » topic index » view thread      » older message » newer message

Search



Quick Links

User menu

Not signed in.

Misc Menu