> Hi again !
> 
> I don't have a clue to what happend...
> In nekoml/Main.nml I changed this :
> function compile(ctx,m,e) {
>         if *verbose then printf "Compiling4\n";
>       var path, deps, idents = module_infos m;
>       var file = Nekoml.Type.file_name path ".n";
>       if *verbose then printf "Compiling2 %s\n" file;
>       var code = Neko.Compile.compile (Nekoml.Neko.generate ctx e deps idents 
> path);
>       var ch = IO.write_file file true;
>       Neko.Bytecode.write ch code;
>       IO.close_out ch
> }
> 
> 
> not quite impresive change though ! lol
> 
> but when compiling it gives me that :
> Typing nekoml.Main.compile
> nekoml/Main.nml(48): Cannot unify void -> void and void
> make: *** [compiler] Erreur 255

Yes, printf in NekoML is stricly typed so a bit different than in other
languages. For instance  printf "%d" "hello"; will not compile, and
printf always takes two arguments : the format string and the parameter(s).

printf "Hello\n" ();
printf "Hello %s\n" "World";
printf "%d : %s" (2,"two");

Nicolas

-- 
Neko : One VM to run them all
(http://nekovm.org)

Reply via email to