]> Repositorios git - scryer-prolog.git/commit
FIXED: arg/3 for partial strings
authorMarkus Triska <[email protected]>
Tue, 29 Apr 2025 20:48:13 +0000 (22:48 +0200)
committerMark Thom <[email protected]>
Tue, 8 Jul 2025 05:38:12 +0000 (22:38 -0700)
commit8763a42c98b2b16e9cbb649cc16e093382c3444f
tree6e0992c9dec90bc9c667bba3f3104338a63b1106
parentd6b6eda77d5d31ec0564d05434c14bb9ab37c7c4
FIXED: arg/3 for partial strings

This address #2924, reported by @haijinSk. Thank you a lot!

Example:

    ?- arg(2, "a", A).
       A = [].

The fact that such a mistake in macro usage is even possible could be
a sign that the macro definition should be stricter.
src/machine/machine_state_impl.rs