Browse thread
[Caml-list] Function forward declaration?
[
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: | Jon Harrop <jdh30@c...> |
| Subject: | Re: [Caml-list] Function forward declaration? |
On Tuesday 06 April 2004 8:28 pm, Marcin 'Qrczak' Kowalczyk wrote: > ... > What would this code do? > > val g : unit -> int > let f () = g () > let x = f () > let y = x + 1 > let g () = y If you could get it to compile, would that not just give the same as: let rec l1=1::l1 and l2=1::l2 in l1=l2;; =;-) Cheers, Jon. ------------------- 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