On 28/01/2011, at 6:32 PM, Christophe Raffalli wrote:

> Hello,
> 
>> 
>> 
>> OK, so I tried this and I get:
>> 
>> ~/felix>flx --test=build/release/ --force abe
>> Saving automaton felix.automaton
>> Fatal error: exception Invalid_argument("output_value: abstract value 
>> (Custom)")
>> 
> 
> The problem is not OCaml's big int:
> 
> raffalli@d45-lama:~$ ocaml
>        Objective Caml version 3.11.2
> 
> # #load "nums.cma";;
> # Marshal.to_string (Num.num_of_string 
> "123232314345245435345345345345665745634564575678546657") [];;
> - : string =
> "\132\149\166\190\000\000\000%\000\000\000\003\000\000\000\r\000\000\000\n\145\160A\018_nat\000\000\000\000\006\233\001\194\225\182ui\028z\206\224\177\224\209\011\199\248\155\028$\000\001I^"
> # output_value stdout (Num.num_of_string 
> "123232314345245435345345345345665745634564575678546657") ;;
> ����%
> ��A_nat����uiz�����
>                       ���$I^- : unit = ()

On my box, I believe it is.. I have had this problem before, try it using 
Ocamlopt...

> For any other data type coming from C, you can provide the marshaling bia the 
> C interface of
> OCaml using custom blocks 
> http://caml.inria.fr/pub/docs/manual-ocaml/manual032.html#toc144
> 
> So in fact, there should be no limitation ... except the difficulty of 
> serializing yourself from C
> the non Ocaml blocks.


I am not using any C data types. It's compiler, a Scheme interpreter, there's 
no C anywhere.


--
john skaller
[email protected]





------------------------------------------------------------------------------
Special Offer-- Download ArcSight Logger for FREE (a $49 USD value)!
Finally, a world-class log management solution at an even better price-free!
Download using promo code Free_Logger_4_Dev2Dev. Offer expires 
February 28th, so secure your free ArcSight Logger TODAY! 
http://p.sf.net/sfu/arcsight-sfd2d
_______________________________________________
Felix-language mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/felix-language

Reply via email to