caml-list - the Caml user's mailing list
 help / color / mirror / Atom feed
* Shallow copy of a record
@ 2005-01-22  4:27 Chris King
  2005-01-22  6:49 ` [Caml-list] " Jacques Garrigue
                   ` (2 more replies)
  0 siblings, 3 replies; 8+ messages in thread
From: Chris King @ 2005-01-22  4:27 UTC (permalink / raw)
  To: O'Caml Mailing List

Maybe I missed it in the docs, but is there a way to create a shallow
copy of a record without modifying any of its contents?  I know
there's the {foo with a=b} construct, but this only works with at
least one assignment; I want to create an unmodified copy of the
record (akin to the {< >} construct for objects).

Thanks!


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

end of thread, other threads:[~2005-01-22 20:08 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-01-22  4:27 Shallow copy of a record Chris King
2005-01-22  6:49 ` [Caml-list] " Jacques Garrigue
2005-01-22 16:55   ` Chris King
2005-01-22 17:55     ` Michal Moskal
2005-01-22 20:08       ` Chris King
2005-01-22 14:17 ` Kurt Welgehausen
2005-01-22 16:45   ` Chris King
     [not found] ` <200501221059.28064.jon@jdh30.plus.com>
2005-01-22 17:03   ` Chris King

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).