Skip to content

Blackboard and attributes on a naked variable #1359

@infradig

Description

@infradig

This works...

$ swipl
Welcome to SWI-Prolog (threaded, 64 bits, version 9.3.21-90-ge96c60c-DIRTY)
?- freeze(A,writeln(here)), nb_setval(abc, f(A)).
freeze(A, writeln(here)).
?- b_getval(abc,A).
A = f(_A),
freeze(_A, writeln(here)).
?- b_getval(abc,A), A=f(123).
here
A = f(123).

but this doesn't...

?- freeze(A,writeln(here)), nb_setval(abc, A).
freeze(A, writeln(here)).
?- b_getval(abc,A).
freeze(A, writeln(_)).
?- b_getval(abc,A), A=123.
_2576
A = 123.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions