I see. So how would I go about implementing the right structure in
source-code like this?
Regexp = $loader.loadmodule("neko/regexp", $loader)
// basically replaces real newlines with readable \n
$exports.inspect = function(original_string){
var string = $scopy(original_string)
regex = Regexp.new("[\\n\\t]")
string = Regexp.replace_all(Regexp.new("\007"), string, "\\a")
return string
}
Source found here: http://oxyliquit.manveru.net/oxid/neko/string.neko
Mod
On Feb 11, 2008 3:38 AM, Nicolas Cannasse <[EMAIL PROTECTED]> wrote:
> [EMAIL PROTECTED] a écrit :
> > I have a newly downloaded copy of Neko (Win32) and the following script:
> > foo = $loader.loadmodule("std",$loader);
> > causes the following error:
> > Uncaught exception - load.c(176) : Module not found : std
> > The same happens for regexp and other standard modules. Using primitives
> > from these modules is no problem, it's only when they're loaded that the
> > error occurs.
>
> A module is a .n file, not a .ndll
> .ndll files are loaded indirectly with loadprimitive
>
> Nicolas
>
> --
> Neko : One VM to run them all
> (http://nekovm.org)
>
--
Neko : One VM to run them all
(http://nekovm.org)