English version
Accueil     Ŕ propos     Téléchargement     Ressources     Contactez-nous    

Ce site est rarement mis ŕ jour. Pour les informations les plus récentes, rendez-vous sur le nouveau site OCaml ŕ l'adresse ocaml.org.

Browse thread
The Bridge Pattern in OCaml
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: 2008-03-28 (12:09)
From: Oliver Bandel <oliver@f...>
Subject: Re: [Caml-list] The Bridge Pattern in OCaml
Zitat von Michael Wohlwend <micha-1@fantasymail.de>:

> Am Freitag, 28. März 2008 12:45:26 schrieb Jim Farrand:
> >
> > The opposite in fact.  I want to be able to serialize things I (the
> > framework designer) never even thought of.  I want the users of my
> > framework to have maximum flexibility to implement whatever
> behaviour
> > they like, without restricted them to the things I thought of
> putting
> > into the file format.
> couldn't the user implement and somehow register functions for
> serializing his
> own data structures?

When I hear "serialization", the term "AST" pop ups for me also.

Possibly I'm too biased here ;-)
but maybe that's the way to go?

Creating a datastrzucture, while creatzing the functionality.
And later, when you want to serialize what you have build up,
write that datastructure, you build by your own, to a file.
and when rereading it, this means: re-create the functionality from the

Isn't this, what is looked for, here?

This is in a way langauge implementation.
Isn't it?