caml-list - the Caml user's mailing list
 help / color / mirror / Atom feed
* [Caml-list] extending a type with Marshal
@ 2003-10-08 21:22 Ker Lutyn
  2003-10-08 21:38 ` Richard Jones
                   ` (3 more replies)
  0 siblings, 4 replies; 10+ messages in thread
From: Ker Lutyn @ 2003-10-08 21:22 UTC (permalink / raw)
  To: caml-list

Marshal provides a convenient way to pass information between
components. It requires that types be the same at either end. But for
multi-machine production systems that must serve traffic continuously,
you cannot count on upgrading all your systems simultaneously.

It is reasonable to want to add capabilities to, say, a web server, in
a backward compatible way so that, say, a legacy content server can
still be used. Later a new content server can be deployed that
responds to the new capabilities. Conversely, we might want to augment
the content server with additional information that will later be used
by an upgraded web server.

    Foo -- A --> Bar

In other words, Foo sends message A to Bar. We'd like to be able to
handle two possibilities:

(1) Foo sends message A' to Bar, who interprets it as A.
(2) Foo sends message A to Bar, who interprets it as A'.

...where A' is an extension of A.

To do this it would be necessary to 'extend' a type at one end of a
Marshal connection without extending it at the other end. Is this
possible? Do people have any suggestions?

__________________________________
Do you Yahoo!?
The New Yahoo! Shopping - with improved product search
http://shopping.yahoo.com

-------------------
To unsubscribe, mail caml-list-request@inria.fr Archives: http://caml.inria.fr
Bug reports: http://caml.inria.fr/bin/caml-bugs FAQ: http://caml.inria.fr/FAQ/
Beginner's list: http://groups.yahoo.com/group/ocaml_beginners


^ permalink raw reply	[flat|nested] 10+ messages in thread

end of thread, other threads:[~2003-10-12 19:45 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-10-08 21:22 [Caml-list] extending a type with Marshal Ker Lutyn
2003-10-08 21:38 ` Richard Jones
2003-10-08 21:54 ` Peter Jolly
2003-10-10  8:37 ` skaller
2003-10-10  9:19 ` Christian Rinderknecht
2003-10-10 10:38   ` skaller
2003-10-10 17:19   ` Martin Berger
2003-10-12  9:01   ` William Chesters
2003-10-12  9:06     ` William Chesters
2003-10-12 19:45     ` About ASN.1 and network encoding (was: Re: [Caml-list] extending a type with Marshal) David MENTRE

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).