Version française
Home     About     Download     Resources     Contact us    

This site is updated infrequently. For up-to-date information, please visit the new OCaml website at

Browse thread
[Caml-list] kprintf with user formatters
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: -- (:)
From: Pierre Weis <pierre.weis@i...>
Subject: Re: [Caml-list] kprintf with user formatters

> > # log false "";;
> > - : unit = <unknown constructor>
> > There is clearly something wrong!
> Oh, come on, don't prohibit my use of Obj.magic by demonstrating strange
> interactions with the equally unsafe Marshal-module ;-)

I cannot and would not like to prohibit your uses of Obj.magic. Go on
if you dare. I just pointed out that this particular use of Obj.magic
created a value that is considered by the Caml system as an ``<unknown
constructor>'': a value that breaks the compiler invariant so deeply
that it cannot print it. This is a bad property that could eventually
bit your program and crash it.

> Btw., what has happened to generics?  They were said to solve problems
> associated with type safety and I/O.  Any intentions to put them into
> the experimental CVS-tree of OCaml?

That's still something to do...


Pierre Weis

INRIA, Projet Cristal,,

To unsubscribe, mail Archives:
Bug reports: FAQ:
Beginner's list: