bug-guile
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: goops: make 'allowing' the use of non existing init kw or slot


From: Andy Wingo
Subject: Re: goops: make 'allowing' the use of non existing init kw or slot
Date: Sat, 27 Aug 2011 14:16:16 +0200
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/23.3 (gnu/linux)

Hi,

On Sat 20 Aug 2011 21:28, David Pirotte <address@hidden> writes:

> The attached code speaks for itself

It does, but it takes me time to parse it.  If possible I prefer a
format of giving short examples inline with a mail message, saying what
you expect should happen, then saying what actually happens.  Just
saying :)


> 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.

That is not how things have worked in the past.  The algorithm goes,
"for each slot definition, initialize it."  It doesn't go, "for each
keyword-argument pair, see what slot corresponds to it, and error
otherwise".

I think we would need some deeper CLOS / GOOPS insight here to change
this.

Andy
-- 
http://wingolog.org/



reply via email to

[Prev in Thread] Current Thread [Next in Thread]