From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Marko Rauhamaa Newsgroups: gmane.lisp.guile.user Subject: Guile 2.0 interpretation vs compilation Date: Sun, 05 Oct 2014 14:03:30 +0300 Message-ID: <87d2a693st.fsf@elektro.pacujo.net> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1412507083 13661 80.91.229.3 (5 Oct 2014 11:04:43 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sun, 5 Oct 2014 11:04:43 +0000 (UTC) To: guile-user@gnu.org Original-X-From: guile-user-bounces+guile-user=m.gmane.org@gnu.org Sun Oct 05 13:04:37 2014 Return-path: Envelope-to: guile-user@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1XajcC-00048B-R3 for guile-user@m.gmane.org; Sun, 05 Oct 2014 13:04:36 +0200 Original-Received: from localhost ([::1]:47028 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XajcC-0004MR-9B for guile-user@m.gmane.org; Sun, 05 Oct 2014 07:04:36 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:38319) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Xajbg-0003yA-IV for guile-user@gnu.org; Sun, 05 Oct 2014 07:04:10 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Xajba-0001Z3-A0 for guile-user@gnu.org; Sun, 05 Oct 2014 07:04:04 -0400 Original-Received: from pacujo.net ([83.150.83.132]:54006) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XajbZ-0001Mk-Qj for guile-user@gnu.org; Sun, 05 Oct 2014 07:03:57 -0400 Original-Received: from elektro.pacujo.net (192.168.1.200) by elektro.pacujo.net; Sun, 5 Oct 2014 14:03:30 +0300 Original-Received: by elektro.pacujo.net (sSMTP sendmail emulation); Sun, 05 Oct 2014 14:03:30 +0300 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 83.150.83.132 X-BeenThere: guile-user@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: General Guile related discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guile-user-bounces+guile-user=m.gmane.org@gnu.org Original-Sender: guile-user-bounces+guile-user=m.gmane.org@gnu.org Xref: news.gmane.org gmane.lisp.guile.user:11565 Archived-At: Consider this program: ===begin test.scm======================================================= (define (hello) #f) (format #t "~S\n" (procedure-name hello)) (define (xyz) (define (hello) #f) (format #t "~S\n" (procedure-name hello))) (xyz) ===end test.scm========================================================= If I run: $ guile --no-auto-compile test.scm hello #f $ guile --no-auto-compile test.scm hello #f $ guile test.scm ;;; note: auto-compilation is enabled, set GUILE_AUTO_COMPILE=0 ;;; or pass the --no-auto-compile argument to disable. [...] hello hello $ guile test.scm hello hello $ guile --no-auto-compile test.scm hello hello # $ guile -v guile (GNU Guile) 2.0.11 [...] Is this a bug or expected behavior? Marko