Hi,
Just define your module in the init.cl file:
testmod :: module( part_of = claire, made_of list("test") )
And remove the begin/end lines, these instruction are only useful
when you want to change the current namespace (usually in
interpreted mode)
Note also that no method will be called when launching your compiled
module. You will have to call main() from the "testmod>" prompt that
will appear.
Thierry
--- In claireprogramminglanguage@yahoogroups.com, igouy2
<no_reply@y...> wrote:
> Please help explain what things I'm doing wrong.
> (using unchanged init.cl from distribution release-3-3-28.zip
>
> file testmod.cl
> test :: module( part_of = claire, made_of list("test") )
>
> file test.cl
> begin(test)
> main() -> printf("hello world!")
> end(test)
>
> I:\pls\Claire>claire -cm testmod
> -- CLAIRE run-time library v 3.3.28 [os: ntv, C++:MS VC++ ] --
> this is a init file for cclaire for OS: ntv -------------------
> init.cl is ok -------------------------------------------------
> **** An error has occurred.
> testmod is not a module