caml-list - the Caml user's mailing list
 help / color / mirror / Atom feed
* syntax bug: copying records
@ 2005-12-21  5:22 skaller
  2005-12-21  6:13 ` [Caml-list] " Mackenzie Straight
  0 siblings, 1 reply; 5+ messages in thread
From: skaller @ 2005-12-21  5:22 UTC (permalink / raw)
  To: caml-list

If x is a record then { x } should be a copy of it. But this
doesn't work, I am using this ugly workaround instead:

{ x with dummy_field = x.dummy_field }

Surely there is a better way? 

Oo.copy doesn't work either. Yes, yes, imperative programming
sucks but I'm using the standard Lexing stuff.

-- 
John Skaller <skaller at users dot sf dot net>
Felix, successor to C++: http://felix.sf.net


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

end of thread, other threads:[~2005-12-21 18:07 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-12-21  5:22 syntax bug: copying records skaller
2005-12-21  6:13 ` [Caml-list] " Mackenzie Straight
2005-12-21 10:41   ` Jacques Garrigue
2005-12-21 11:00     ` skaller
2005-12-21 18:07     ` Mackenzie Straight

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