From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 20691 invoked by alias); 3 Mar 2014 16:20:26 -0000 Mailing-List: contact gdb-patches-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sourceware.org Received: (qmail 20680 invoked by uid 89); 3 Mar 2014 16:20:25 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-1.8 required=5.0 tests=AWL,BAYES_00,FREEMAIL_ENVFROM_END_DIGIT,FREEMAIL_FROM,RCVD_IN_DNSWL_LOW,SPF_PASS autolearn=ham version=3.3.2 X-HELO: mail-yk0-f177.google.com Received: from mail-yk0-f177.google.com (HELO mail-yk0-f177.google.com) (209.85.160.177) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with (AES128-SHA encrypted) ESMTPS; Mon, 03 Mar 2014 16:20:24 +0000 Received: by mail-yk0-f177.google.com with SMTP id q200so11034944ykb.8 for ; Mon, 03 Mar 2014 08:20:22 -0800 (PST) MIME-Version: 1.0 X-Received: by 10.236.31.138 with SMTP id m10mr21573221yha.55.1393863622339; Mon, 03 Mar 2014 08:20:22 -0800 (PST) Received: by 10.170.99.85 with HTTP; Mon, 3 Mar 2014 08:20:22 -0800 (PST) In-Reply-To: <20140303132336.GC4893@adacore.com> References: <87wqgbsktg.fsf@gnu.org> <20140303132336.GC4893@adacore.com> Date: Mon, 03 Mar 2014 16:20:00 -0000 Message-ID: Subject: Re: [PATCH] record_latest_value: Call release_value_or_incref instead of release_value From: Doug Evans To: Joel Brobecker Cc: =?ISO-8859-1?Q?Ludovic_Court=E8s?= , "gdb-patches@sourceware.org" Content-Type: text/plain; charset=ISO-8859-1 X-IsSubscribed: yes X-SW-Source: 2014-03/txt/msg00042.txt.bz2 On Mon, Mar 3, 2014 at 5:23 AM, Joel Brobecker wrote: >> --8<---------------cut here---------------start------------->8--- >> (gdb) guile (use-modules (gdb)) > > Following the example of Python, shouldn't this be implicit? > >> (gdb) guile (history-append! (make-value 42)) We had a discussion of this on the #guile irc channel, and I couldn't find anyone who thought it should be implicit. Plus we also had a discussion of whether the symbols should have a builtin prefix, e.g., to avoid collisions like the one with symbol? that ludo mentions. E.g., gdb:symbol? instead of symbol? I couldn't find anyone who advocated for a builtin prefix, and Guile provides the ability to add one when importing: (use-modules ((gdb) #:renamer (symbol-prefix-proc 'gdb:)))