%%% Example of dynamic predicates

:- eval(test_dynamic1()).

test_dynamic1() :-
	PredA="dyn_a",
	PredA(A),
	println(["A=",A]),
	dyn(PredB),
	PredB(B),
	println(["B=",B]).

dyn("dyn_a").
dyn("dyn_b").

dyn_a(X) :-
	X="dyn_a result".

dyn_b(Y) :-
	Y="dyn_b result".

