From dima@solvo.ru Tue Nov 13 08:41:09 2001
Received: from dual.solvo.ru (dual.solvo.ru [195.201.44.111])
	by swi.psy.uva.nl (8.11.2/8.11.2) with ESMTP id fAD7f8t19895
	for <prolog@swi.psy.uva.nl>; Tue, 13 Nov 2001 08:41:08 +0100 (MET)
Received: from (locally authorised broken client using invalid hostname!) dual by dual.solvo.ru with esmtp
	(Smail3.2.0.114 #1) id m163YBq-001VPNC; Tue, 13 Nov 2001 10:41:02 +0300 (MSK)
Date: Tue, 13 Nov 2001 10:41:02 +0300 (MSK)
From: =?koi8-r?B?5M3J1NLJyiDzLiDr1drYzcnO?= <dima@solvo.ru>
To: prolog@swi.psy.uva.nl
Message-ID: <Pine.LNX.4.40.0111131032170.24483-100000@dual.solvo.ru>
MIME-Version: 1.0
Content-Type: TEXT/PLAIN; charset=US-ASCII
Subject: [SWIPL] current_thread/2 behavior


%% 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 ?


