GNU bug report logs - #24102
Use guile variable objects as SRFI-111 boxes.

Previous Next

Package: guile;

Reported by: "Glenn Michaels" <gmichaels <at> Safe-mail.net>

Date: Fri, 29 Jul 2016 09:23:02 UTC

Severity: normal

Tags: patch

Full log


View this message in rfc822 format

From: Andy Wingo <wingo <at> pobox.com>
To: "Glenn Michaels" <gmichaels <at> Safe-mail.net>
Cc: 24102 <at> debbugs.gnu.org
Subject: bug#24102: Use guile variable objects as SRFI-111 boxes.
Date: Thu, 04 Aug 2016 22:59:33 +0200
On Tue 02 Aug 2016 12:25, "Glenn Michaels" <gmichaels <at> Safe-mail.net> writes:

> Trivial patch implementing this suggestion attached.
>
> --- a/module/srfi/srfi-111.scm
> +++ b/module/srfi/srfi-111.scm
> @@ -17,21 +17,9 @@
>  ;; Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
>  
>  (define-module (srfi srfi-111)
> -  #:use-module (srfi srfi-9)
> -  #:use-module (srfi srfi-9 gnu)
> -  #:export (box box? unbox set-box!))
> +  #:re-export ((make-variable . box)
> +               (variable? . box?)
> +               (variable-ref . unbox)
> +               (variable-set! . set-box!)))
>  
>  (cond-expand-provide (current-module) '(srfi-111))

I like it.  Let me check in with Mark and see if there's any reason to
keep it like it is.

Andy




This bug report was last modified 8 years and 108 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.