From: David Pirotte <david@altosw.be>
To: bug-guile@gnu.org
Subject: goops: make 'allowing' the use of non existing init kw or slot
Date: Sat, 20 Aug 2011 16:28:42 -0300 [thread overview]
Message-ID: <20110820162842.213b7ed4@rascar> (raw)
[-- Attachment #1: Type: text/plain, Size: 198 bytes --]
Hello,
The attached code speaks for itself: shouldn't we get an error on both of these
attempts?
1] the slot exists but no :init-keyword was defined;
2] the slot does not exists.
Cheers,
David
[-- Attachment #2: goops-make-using-non-existing-kw-or-slot.scm --]
[-- Type: text/x-scheme, Size: 585 bytes --]
(define-module (goops-make-using-non-existing-kw-or-slot)
:use-module (oop goops)
:export (<widget-a>
dialog
no-kw
letstry
))
(define-class <widget-a> ()
(dialog :accessor dialog :init-keyword :dialog :init-value #f)
(no-kw :accessor no-kw :init-value #f))
(define (letstry)
(make <widget-a>
:dialog 'dialog-a
:no-kw 'no-kw
:non-existing-slot 'non-existing-slot))
#!
(use-modules (macros push))
(push! "/usr/local/share/guile/alto/2.0/tests"
%load-path)
(use-modules (goops-make-using-non-existing-kw-or-slot))
(letstry)
!#
next reply other threads:[~2011-08-20 19:28 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-08-20 19:28 David Pirotte [this message]
2011-08-27 12:16 ` goops: make 'allowing' the use of non existing init kw or slot Andy Wingo
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.gnu.org/software/guile/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20110820162842.213b7ed4@rascar \
--to=david@altosw.be \
--cc=bug-guile@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).