🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.lang.clos
Article #281

Re: clos initforms

#281
From: George Williams
Date: Mon, 09 Nov 1992 01:54
12 lines
1155 bytes
On Nov 9,  5:35am, Jeffrey B Kane wrote:
> The problem is that I need for slot-2 to default to the same value as
> slot-1 if the user does not specify it in the constructor.

I don't think you can do this with initforms.  You could use an :after
method on initialize-instance or shared-initialize which would check for
the presence of the initarg.

George Williams            BCS Huntsville Artificial Intelligence Center
Boeing Computer Services   Internet: george@hsvaic.boeing.com
POBox 240002, M/S JY-58    UUCP: ...!uw-beaver!bcsaic!hsvaic!george
Huntsville AL 35824-6402   Phone: 205+464-4968 FAX: 205+464-4930
Technical Details
Message-ID: <9211091354.AA04928@hsvaic.boeing.com>
Path: arc1-ca.pugleaf.net!sparky!uunet!ogicse!uwm.edu!zaphod.mps.ohio-state.edu!cis.ohio-state.edu!hsvaic.boeing.COM!george
References: george@hsvaic.boeing.COM (George Williams)

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!sparky!uunet!ogicse!uwm.edu!zaphod.mps.ohio-state.edu!cis.ohio-state.edu!hsvaic.boeing.COM!george
From: george@hsvaic.boeing.COM (George Williams)
Newsgroups: comp.lang.clos
Subject: Re: clos initforms
Message-ID: <9211091354.AA04928@hsvaic.boeing.com>
Date: 9 Nov 92 01:54:38 GMT
Article-I.D.: hsvaic.9211091354.AA04928
References: george@hsvaic.boeing.COM (George Williams)
Sender: daemon@cis.ohio-state.edu
Organization: The Ohio State University Department of Computer and Information Science
Lines: 12