From: Nicolas FRANCOIS (AKA El Bofo) <nicolas.francois@free.fr>
To: Caml List <caml-list@inria.fr>
Subject: Re: [Caml-list] I'm getting slightly mad
Date: Tue, 29 Oct 2002 18:17:46 +0100 [thread overview]
Message-ID: <20021029181746.293ce5bc.nicolas.francois@free.fr> (raw)
In-Reply-To: <20021029041713.3cd91c24.nicolas.francois@free.fr>
Le Tue, 29 Oct 2002 04:17:13 +0100 Nicolas FRANCOIS (AKA El Bofo)
<nicolas.francois@free.fr> a écrit :
> let recopie_tableau tableau =
> let tableau' = Array.make_matrix 31 31 (case_vide ()) in
> for i = 0 to 30 do
> for j = 0 to 30 do
> tableau'.(i).(j).occupe <- tableau.(i).(j).occupe;
> for k = 0 to 3 do
> tableau'.(i).(j).etat.(k) <- tableau.(i).(j).etat.(k)
> done
> done
> done;
> tableau'
Thanks to Michel Quercia, my problem is solved, by adding a line to this
copy function :
let recopie_tableau tableau =
let tableau' = Array.make_matrix 31 31 (case_vide ()) in
for i = 0 to 30 do
for j = 0 to 30 do
tableau'.(i).(j) <- case_vide (); (* This is the new line,
essential ! *)
tableau'.(i).(j).occupe <- tableau.(i).(j).occupe;
for k = 0 to 3 do
tableau'.(i).(j).etat.(k) <- tableau.(i).(j).etat.(k)
done
done
done;
tableau'
\bye
--
Nicolas FRANCOIS
http://nicolas.francois.free.fr
We are the Micro$oft.
Resistance is futile.
You will be assimilated.
-------------------
To unsubscribe, mail caml-list-request@inria.fr Archives: http://caml.inria.fr
Bug reports: http://caml.inria.fr/bin/caml-bugs FAQ: http://caml.inria.fr/FAQ/
Beginner's list: http://groups.yahoo.com/group/ocaml_beginners
prev parent reply other threads:[~2002-10-29 17:09 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2002-10-29 3:17 Nicolas FRANCOIS
2002-10-29 17:17 ` Nicolas FRANCOIS [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20021029181746.293ce5bc.nicolas.francois@free.fr \
--to=nicolas.francois@free.fr \
--cc=caml-list@inria.fr \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox