Browse thread
The Bridge Pattern in OCaml
[
Home
]
[ Index:
by date
|
by threads
]
[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
[ 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 datastructure. Isn't this, what is looked for, here? This is in a way langauge implementation. Isn't it? Ciao, Oliver