unofficial mirror of bug-guile@gnu.org 
 help / color / mirror / Atom feed
* bug#17941: `define-method' special-cases zero-subform body
@ 2014-07-04 22:57 Taylan Ulrich Bayirli/Kammer
  0 siblings, 0 replies; only message in thread
From: Taylan Ulrich Bayirli/Kammer @ 2014-07-04 22:57 UTC (permalink / raw)
  To: 17941

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





^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2014-07-04 22:57 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-07-04 22:57 bug#17941: `define-method' special-cases zero-subform body Taylan Ulrich Bayirli/Kammer

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).