GNU bug report logs - #17941
`define-method' special-cases zero-subform body

Previous Next

Package: guile;

Reported by: Taylan Ulrich Bayirli/Kammer <taylanbayirli <at> gmail.com>

Date: Fri, 4 Jul 2014 22:58:01 UTC

Severity: minor

Full log


Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):

From: Taylan Ulrich Bayirli/Kammer <taylanbayirli <at> gmail.com>
To: bug-guile <at> gnu.org
Subject: `define-method' special-cases zero-subform body
Date: Sat, 05 Jul 2014 01:57:13 +0300
The `define-method' macro (deferring to the `method' macro) in
modules/oop/goops.scm special-cases a method body of zero forms,
making it (if #f #f).  I don't know if this has a purpose in first
place, but the following fails nevertheless, making the special-case
seem moot and introducing an inconsistency:

(define-method (foo) (begin))

Related bug report:
http://debbugs.gnu.org/cgi/bugreport.cgi?bug=17940

Bug originally mentioned in:
http://lists.gnu.org/archive/html/guile-user/2014-07/msg00007.html

Taylan




This bug report was last modified 10 years and 257 days ago.

Previous Next


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