Version française
Home     About     Download     Resources     Contact us    
Browse thread
Records misbehaviour
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: -- (:)
From: Lukasz Stafiniak <lukstafi@g...>
Subject: Records misbehaviour
While I haven't encounter this in my programming, it popped out in
another thread and I think something might be done about it:

#type t1 = {fst:int;snd:int};; 
#let p1 = {fst=1; snd=2};; 
#type t2 = {snd:int};; 
#{p1 with snd=4};; 
- : t2 = {snd = 4};; 

Best Regards,
Lukasz