View previous topic :: View next topic |
Author |
Message |
simhau
Joined: 06 Feb 2007 Posts: 55
|
Posted: Sun Jan 13, 2008 11:09 am Post subject: MDContext.importModule cannot load module |
|
|
I just get an error even if I have the file in the current directory...
minid.types.MDException: Error loading module "test.md": could not find anything to load |
|
Back to top |
|
|
simhau
Joined: 06 Feb 2007 Posts: 55
|
Posted: Sun Jan 13, 2008 11:11 am Post subject: |
|
|
BTW, this is what I do to get the error. I then run "rle.exe test.md"
Code: |
void main(char[][] args) {
if (args.length < 2)
return;
auto ctx = NewContext(
MDStdlib.Array
| MDStdlib.Char
| MDStdlib.Math
| MDStdlib.String
| MDStdlib.Table);
WrapModule("rle.rle", ctx)
.type(WrapClass!(RLE)()
.method!(RLE.start)()
.method!(RLE.shutdown)());
ctx.importModule(toString32(args[1]));
}
|
|
|
Back to top |
|
|
simhau
Joined: 06 Feb 2007 Posts: 55
|
Posted: Sun Jan 13, 2008 11:17 am Post subject: |
|
|
Hehe.. Found the error...
importModule("test") works, but not ("test.md") |
|
Back to top |
|
|
|