From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: "Neil Jerram" Newsgroups: gmane.lisp.guile.user Subject: Re: bug: defining things in different threads Date: Sat, 15 Nov 2008 22:49:46 +0000 Message-ID: <49dd78620811151449n57a0c448q20f94170bb51ff91@mail.gmail.com> References: <3ae3aa420811111057k597b510eyed0f351429b0d61e@mail.gmail.com> <87bpwlcd02.fsf@gnu.org> <3ae3aa420811120927m2248e87fiacf96fc701eecda1@mail.gmail.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1226789402 7678 80.91.229.12 (15 Nov 2008 22:50:02 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 15 Nov 2008 22:50:02 +0000 (UTC) Cc: =?ISO-8859-1?Q?Ludovic_Court=E8s?= , guile-user@gnu.org To: linasvepstas@gmail.com Original-X-From: guile-user-bounces+guile-user=m.gmane.org@gnu.org Sat Nov 15 23:51:05 2008 Return-path: Envelope-to: guile-user@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1L1Tyq-00026J-JO for guile-user@m.gmane.org; Sat, 15 Nov 2008 23:51:04 +0100 Original-Received: from localhost ([127.0.0.1]:45953 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1L1Txi-00028P-Dw for guile-user@m.gmane.org; Sat, 15 Nov 2008 17:49:54 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1L1Txe-00028B-Bk for guile-user@gnu.org; Sat, 15 Nov 2008 17:49:50 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1L1Txc-00027z-L6 for guile-user@gnu.org; Sat, 15 Nov 2008 17:49:49 -0500 Original-Received: from [199.232.76.173] (port=41524 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1L1Txc-00027w-FF for guile-user@gnu.org; Sat, 15 Nov 2008 17:49:48 -0500 Original-Received: from rv-out-0708.google.com ([209.85.198.249]:38576) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1L1Txc-0006vt-46 for guile-user@gnu.org; Sat, 15 Nov 2008 17:49:48 -0500 Original-Received: by rv-out-0708.google.com with SMTP id k29so2197408rvb.6 for ; Sat, 15 Nov 2008 14:49:46 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlemail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:to :subject:cc:in-reply-to:mime-version:content-type :content-transfer-encoding:content-disposition:references; bh=sGcf1qNm/l0ahdKpZjtxSErDzgEIZGUsJly6LpQIeNc=; b=TzkZJwSK9IaSC9xrixKcREfMqHBpgElWieNDgPmREdsKnOh3FoPHUdLY02rMOdt4R2 7rCfiBXjegquVIfoh77UpkglnC9MHZM6q9/ZediWcKtzBYdqXmEoFcEDKYm0wqiC4Vy4 eGoidMU9C5dyZT11cJdyJ5gxWSlcX/T3Dvuws= DomainKey-Signature: a=rsa-sha1; c=nofws; d=googlemail.com; s=gamma; h=message-id:date:from:to:subject:cc:in-reply-to:mime-version :content-type:content-transfer-encoding:content-disposition :references; b=kR2yRdmvLZ6xNHNKppSxri4ha1qJYboF9WOwjPjtci/ogTVlyxUCBtNHdZGwQHcY2B 6T0YfgGq0ZxdeyIYAyhR2H8L66BHc0SfobcQJg3OH3ADmbNUHgo8F8pDg5i0mT+dU0bg H3he/aq5sJlvcJbDU7IL1pm7SAWqQscaiKRR0= Original-Received: by 10.140.125.1 with SMTP id x1mr1357935rvc.265.1226789386193; Sat, 15 Nov 2008 14:49:46 -0800 (PST) Original-Received: by 10.140.142.15 with HTTP; Sat, 15 Nov 2008 14:49:46 -0800 (PST) In-Reply-To: <3ae3aa420811120927m2248e87fiacf96fc701eecda1@mail.gmail.com> Content-Disposition: inline X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 2) X-BeenThere: guile-user@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: General Guile related discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: guile-user-bounces+guile-user=m.gmane.org@gnu.org Errors-To: guile-user-bounces+guile-user=m.gmane.org@gnu.org Xref: news.gmane.org gmane.lisp.guile.user:6915 Archived-At: 2008/11/12 Linas Vepstas : > Yes, of course, the problem remains. Explanation: Thread 1 is the first thread that does any Guile stuff, so it loads boot-9.scm, which means that it ends up in the (guile-user) module. Thread 2 hasn't done any (set-current-module ...), so it stays at the default, which is (guile). Solution: add (define-module (guile-user)) to the code that you execute in thread 2. Regards, Neil