|
confirmation on :default-initargs not working?: msg#00092lisp.corman
No one has responded/reacted to this from yesterday (or the night beore?): > Hard to believe, but :default-initargs seem not to work: > > (defclass aaa () > ((xxx :initform 'x :initarg :xxx :accessor xxx) > (yyy :initform 'y :initarg :yy :accessor yyy)) > (:default-initargs > :xxx 'xx > :yy 'yy)) > > (describe (make-instance 'aaa)) > > #<Standard-Class AAA #x14FDF70> > CLOS OBJECT: > printed representation: #<Aaa #x1562DF0> > class: #<Standard-Class AAA #x14FDF70> > heap address: #x1562DF0 > xxx: X > yyy: Y The values should be 'xx and 'yy, 'x and 'y are the initforms. Can anyone at least /confirm/ the problem? I did restore the unpatched img file and confirmed the behavior was the same with the unpatched 2.01. (I discovered this using 2.01 with the latest clos.lisp and structures.lisp). A search of the CormanLisp directory reveals no use of the :default-initargs option, and no more than this in way of acknowledgment of the option: > (defun canonicalize-defclass-option (option) > (case (car option) > (:metaclass > (list ':metaclass > `(find-class ',(cadr option)))) > (:default-initargs > (list > ':direct-default-initargs > `(list ,@(mapappend... etc So I guess I have my answer, I just cannot believe it <g>: :default-initargs are not supported. I did check again the doc on what is supported and I did not spot this one. Did I miss it? One picky suggestion I have been meaning to make in re that particular bit of documentation is that, now that a lot of the things in the list are no longer limitations of CormanLisp, the section is tough to scan. First a bold subhead shouts out "No eql specializers." followed by a detailed description of the limitation followed (possibly!) by a "Corman Lisp: never mind". I understand how that situation arose (starting with the section from the book, then qualifying as necessary) but I think CormanCL has moved too far from those origins to make the book excerpt a base line to which the reader must apply [never minds]. no big deal. -- kenny tilton clinisys, inc http://www.tilton-technology.com/ --------------------------------------------------------------- "Cells let us walk, talk, think, make love and realize the bath water is cold." -- Lorraine Lee Cudmore ------------------------ Yahoo! Groups Sponsor ---------------------~--> Get 128 Bit SSL Encryption! http://us.click.yahoo.com/xaxhjB/hdqFAA/xGHJAA/SyjtlB/TM ---------------------------------------------------------------------~-> To unsubscribe from this group, send an email to: cormanlisp-unsubscribe@xxxxxxxxxxxxxxx Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/ |
|
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| Previous by Date: | Re: ct:defctype within (LET: 00092, Chris Double |
|---|---|
| Next by Date: | Re: confirmation on :default-initargs not working?: 00092, Frode Vatvedt Fjeld |
| Previous by Thread: | ct:defctype within (LETi: 00092, lcluke |
| Next by Thread: | Re: confirmation on :default-initargs not working?: 00092, Frode Vatvedt Fjeld |
| Indexes: | [Date] [Thread] [Top] [All Lists] |
| News | FAQ | advertise |