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
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: 2005-01-22 (04:27)
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).