caml-list - the Caml user's mailing list
 help / color / mirror / Atom feed
* [Caml-list] Ocaml et la Standard Library
@ 2002-11-02 20:16 poinca
  2002-11-03 11:18 ` Remi VANICAT
  0 siblings, 1 reply; 8+ messages in thread
From: poinca @ 2002-11-02 20:16 UTC (permalink / raw)
  To: caml-list

    Je viens d'installer OCaml 3.0.6 sur MacOS X. Par contre j'ai un petit soucis avec la 'Standard
Library'. Comment la charge-t-on ? (les fonctions hd, tl, list_length, vect_length .... sont très
pratique )


    Objective Caml version 3.06

# let list = [1;2;4;5];;
val list : int list = [1; 2; 4; 5]
# hd list;;
Unbound value hd
# list_length list;;
Unbound value list_length

Merci
Poinca

Accédez au courrier électronique de La Poste : www.laposte.net ;
3615 LAPOSTENET (0,13 €/mn) ; tél : 08 92 68 13 50 (0,34€/mn)"
-------------------
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


^ permalink raw reply	[flat|nested] 8+ messages in thread
* [Caml-list] Open types and methods
@ 2002-11-03 10:30 Jérôme Marant
  2002-11-03 10:57 ` Stefano Zacchiroli
  2002-11-03 11:29 ` Olivier Andrieu
  0 siblings, 2 replies; 8+ messages in thread
From: Jérôme Marant @ 2002-11-03 10:30 UTC (permalink / raw)
  To: caml-list


Hi,

  I know that I cannot use open types as method parameter types,
  like:

  method foo (w : #mother) = ....

  So, how can I pass to a method an object of a given class or
  of its inherited classes, i.e. how to work this limitation
  around?

  Thanks.

  Cheers,

-- 
Jérôme Marant

http://marant.org
              
-------------------
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


^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2002-11-04  8:48 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2002-11-02 20:16 [Caml-list] Ocaml et la Standard Library poinca
2002-11-03 11:18 ` Remi VANICAT
2002-11-03 12:23   ` Sven Luther
2002-11-03 10:30 [Caml-list] Open types and methods Jérôme Marant
2002-11-03 10:57 ` Stefano Zacchiroli
2002-11-04  8:48   ` Stefano Zacchiroli
2002-11-03 11:29 ` Olivier Andrieu
2002-11-03 15:13   ` Jérôme Marant

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).