Version française
Home     About     Download     Resources     Contact us    

This site is updated infrequently. For up-to-date information, please visit the new OCaml website at

Browse thread
Shallow copy of a record
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: -- (:)
From: Chris King <colanderman@g...>
Subject: Shallow copy of a record
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).