Subject: [SWIPL] current_thread/2 behavior

From: Дмитрий С. Кузьмин <[email-masked]>
Date: Tue, 13 Nov 2001 10:41:02 +0300 (MSK)

%% 1)

?- current_thread(asd,X).
ERROR: thread `asd' does not exist

?-catch(current_thread(asd,X),Error,true).

X = _G378 Error = error(existence_error(thread, asd), _G457)

Yes

%% 2)

?- current_thread(A,X),A=asd.

No

%% Question : Why ?