* Marshal module.
@ 1997-12-01 11:37 Ken Wakita
1997-12-01 20:25 ` Christian Foisy
1997-12-02 14:51 ` Xavier Leroy
0 siblings, 2 replies; 3+ messages in thread
From: Ken Wakita @ 1997-12-01 11:37 UTC (permalink / raw)
To: Caml list
Hi,
Using the Marshal module from the ocaml interpreter, I found its strange
behavior. Though Marshal.from_string is registered in the Marshal.mli
interface file, the interpreter complains for "Reference to undefined
global". Folloing is my session
Last login: Mon Dec 1 14:09:39 from sassas-gw2
Sun Microsystems Inc. SunOS 5.5.1 Generic May 1996
k0ua> ocaml
Objective Caml version 1.06
# Marshal.to_string;;
- : 'a -> Marshal.extern_flags list -> string = <fun>
# Marshal.from_string;;
Reference to undefined global `Marshal'
#
Ken
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: Marshal module.
1997-12-01 11:37 Marshal module Ken Wakita
@ 1997-12-01 20:25 ` Christian Foisy
1997-12-02 14:51 ` Xavier Leroy
1 sibling, 0 replies; 3+ messages in thread
From: Christian Foisy @ 1997-12-01 20:25 UTC (permalink / raw)
To: Ken.Wakita; +Cc: caml-list
> Using the Marshal module from the ocaml interpreter, I found
> its strange behavior. Though Marshal.from_string is registered
> in the Marshal.mli interface file, the interpreter complains
> for "Reference to undefined global". Folloing is my session
Add "marshal" to
PERVASIVES=arg array callback char digest filename format gc hashtbl \
lexing list map obj parsing pervasives printexc printf queue random \
set sort stack string stream sys oo genlex topdirs toploop weak lazy
in the main Makefile.
--
Christian Foisy, CACPUS | tel: (819) 821-8000 ext 2086
SP2 Parallel computing specialist | fax: (819) 821-8017
Universite de Sherbrooke, Canada | christian.foisy@courrier.usherb.ca
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: Marshal module.
1997-12-01 11:37 Marshal module Ken Wakita
1997-12-01 20:25 ` Christian Foisy
@ 1997-12-02 14:51 ` Xavier Leroy
1 sibling, 0 replies; 3+ messages in thread
From: Xavier Leroy @ 1997-12-02 14:51 UTC (permalink / raw)
To: Ken Wakita; +Cc: caml-list
> Using the Marshal module from the ocaml interpreter, I found its strange
> behavior. Though Marshal.from_string is registered in the Marshal.mli
> interface file, the interpreter complains for "Reference to undefined
> global".
Yes, that's a mistake in the building of ocaml. Basically, the
implementation of the "Marshal" module was removed. The reason you
can still use "Marshal.to_string" is that it's a primitive, not
defined in the implementation of "Marshal", while "Marshal.from_string"
is ML code from the implementation of "Marshal".
The problem will be fixed shortly. Thanks for the bug report, but
really your message doesn't belong to caml-list@inria.fr, you should
have mailed caml-light@inria.fr instead.
Regards,
- Xavier Leroy
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~1997-12-02 16:35 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
1997-12-01 11:37 Marshal module Ken Wakita
1997-12-01 20:25 ` Christian Foisy
1997-12-02 14:51 ` Xavier Leroy
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox