Browse thread
[Caml-list] Stupid question about the toplevel
-
Brian Hurt
- Falk Hueffner
- Pierre Weis
- Nicolas Cannasse
- Matt Gushee
[
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: | Matt Gushee <mgushee@h...> |
| Subject: | Re: [Caml-list] Stupid question about the toplevel |
On Fri, Apr 02, 2004 at 03:47:17PM -0600, Brian Hurt wrote:
>
> An example toplevel experience:
> $ ocaml
> Objective Caml version 3.07
>
> # 3+4;;
> - : int = 7
> #
>
> So what's the "-" at the begining of the line mean? Originally I thought
> it meant that the input came from stdin, but I've been unable to change it
> to anything else.
I'm going to answer your question with a question (don't you hate it
when people do that?):
# let foo = 3+4;;
val foo : int = 7
#
So what does the "val foo" at the beginning of the line mean?
--
Matt Gushee When a nation follows the Way,
Englewood, Colorado, USA Horses bear manure through
mgushee@havenrock.com its fields;
http://www.havenrock.com/ When a nation ignores the Way,
Horses bear soldiers through
its streets.
--Lao Tzu (Peter Merel, trans.)
-------------------
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