|
From: | Vésy Jordan |
Subject: | Variables can be modified through the foreign C interface |
Date: | Sun, 22 May 2022 16:59:06 +0000 |
Hello,
on GNU Prolog 1.5.0 tested on Arch Linux with kernel 5.17.8,
with
---------- bugged.pl ----------
:- foreign(magic(term)).
go(X) :-
X = value(0),
magic(X).
-------------------------------
and
The value of the X variable is modified like this:
Thanks,
Jordan Vésy
|
[Prev in Thread] | Current Thread | [Next in Thread] |