Hi,
you do not need to do anything. The unknown that you see is the last
result that is printed by the interpreter. If you print in a file,
or if you call your printing code many times, you will not see this
unknown.
To make things nicer at the top level, it is a good practice to end
your last print statement with a \n
Cheers,
-- Yves
--- In claireprogramminglanguage@yahoogroups.com, "paidi_creed"
<paidi_creed@y...> wrote:
> Hi,
>
> Whenever I use any of the print functions in CLAIRE the word
unknown
> is printed at the end of the output.
> Is this normal? Do I need to put in some instruction to say that I
am
> finished my output?
>
> for example,
>
> [test()
> -> let p := choco/makeProblem("Test Problem", 10),
> vars := list{choco/makeIntVar(p, "v", 1, i) | i in (2 ..
11)},
> obj := makeMapColouringObjective(list<integer>(1))
> in
> ( printf("This is a test")
> )
> ]
>
> gives
>
> gamecsp> test()
> eval[0]> This is a testunknown
> gamecsp>
>
> Thanks,
>
> Paidi