Version française
Home     About     Download     Resources     Contact us    
Browse thread
virtual instance variables
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: -- (:)
From: Jon Harrop <jon@f...>
Subject: Re: [Caml-list] virtual instance variables
On Thursday 28 June 2007 14:34:20 Jeremy Yallop wrote:
> Should this be considered a bug?
>
>     # (object val virtual c : float method m = c end) # m;;
>     Segmentation fault

Yes:

$ ocaml
        Objective Caml version 3.09.1

# (object val virtual c : float method m = c end) # m;;
Syntax error

$ ocaml
        Objective Caml version 3.10.0

# (object val virtual c : float method m = c end) # m;;
Signal -10

and what is signal -10?! :-)

-- 
Dr Jon D Harrop, Flying Frog Consultancy Ltd.
The OCaml Journal
http://www.ffconsultancy.com/products/ocaml_journal/?e