|Newbie questions about Pliant
console (argument register 2):register eol
displays a large number
|Message posted by maybe Todd Fleming on 2001/04/05 03:26:50
|Should the result be 2?
|Message posted by maybe Hubert Tonneau on 2001/04/05 09:40:43
|You are mixing something that should not go together:
'argument register 2' means the second processor register, and should only
be used in a low level meta functions.
An argument that would be the value 2 would be 'argument constant Int 2'
but once more, it has meaning only in a meta function, not in a simple
|Message posted by maybe Patrice Ossona de Mendez on 2001/04/05 11:11:10
|Well, but even if you write something like
meta toto e
var Link:Argument a :> argument register 2
console a:register eol
the result is 1077212856 ???
I did not find anywhere where 'argument register' is actually used...
|Message posted by pom on 2001/04/05 11:46:50
|I've found the bug: a suckup was missing in argument2.pli
Please apply the patch and rerun install to make it work.
|Message posted by pom on 2001/04/05 11:48:00
|Sorry, I have no permission in this discussion, so the patch will be
in a new discussion in the code forum :-)
|Message posted by maybe Hubert Tonneau on 2001/04/05 11:57:04
|You are perfectly right.
|Message posted by maybe Todd Fleming on 2001/04/05 17:15:58
|I am playing with adding optimizer functions. That is when I ran into it.
|Message posted by pom on 2001/04/05 18:23:07
|Have fun and good luck !!!