Browse thread
Shallow copy of a record
[
Home
]
[ Index:
by date
|
by threads
]
[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
| Date: | -- (:) |
| From: | Chris King <colanderman@g...> |
| Subject: | Re: [Caml-list] Shallow copy of a record |
On Sat, 22 Jan 2005 18:55:40 +0100, Michal Moskal
<michal.moskal@gmail.com> wrote:
> No, consider:
>
> let copy foo = {foo with a = b}
>
> and now, if there were no assign:
>
> let copy foo = {foo}
>
> what should be the type of copy?
Ah okay, I didn't think about that. But I suppose in cases like that,
the type could be forced, as in "let copy foo = { (foo:bar) }".