[Ecls-list] initargs for socket class

Julian Stecklina der_julian at web.de
Wed Feb 16 10:47:01 UTC 2005


On Wed, 16 Feb 2005 10:47:56 +0100 (CET)
"lisp" <lisp at arrakis.es> wrote:

> Hi,
> 
> I had a look at the code in sockets.lisp and I might be wrong, but
> isn't this wrong...
> 
> (defmethod shared-initialize :after ((s socket)... &key ... type ...)
>    ...
>    (setf (slot-value s 'type) type)
>    ....)
> 
> ???
> 
> In principle, there is no warranty that SHARED-INITIALIZE will get a
> value for :TYPE. The only warranty is that the _slot_ 'TYPE has been
> filled by the parent method using the value of the :INITFORM. Hence,
> invoking (make-instance 'socket ...) without an argument :TYPE will
> always fail!

I had the same thoughts about this. But in the SBCL world nobody seems
to have a problem with this. :) I have no problem with removing this,
though.

Regards,
-- 
                    ____________________________
 Julian Stecklina  /  _________________________/
  ________________/  /
  \_________________/  LISP - truly beautiful




More information about the ecl-devel mailing list