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
syntax bug: copying records
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: -- (:)
From: skaller <skaller@u...>
Subject: syntax bug: copying records
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++: