Article View: comp.lang.clos
Article #212Re: Object-Oriented Methodologies - Class Specifications
From: Jeff Dalton
Date: Fri, 04 Sep 1992 16:14
Date: Fri, 04 Sep 1992 16:14
25 lines
1854 bytes
1854 bytes
> In article <j1kn6ll.objsys@netcom.com> Bob Hathaway <objsys@netcom.com> writes: > still don't understand why people think functions in CLOS are special; > except for their left-to-right ordering and lack of default protection for > their arguments they're still just ordinary polymorphic functions invoked at > run-time. Maybe the run-time function invocation not being so commonly > available explains why this is considered special (and is to CLOS' credit). > But the lack of default protection means no multiple-implementations per > type; a severe restriction that I doubt even CLOS' intercessory protocols > can overcome. Am I wrong here? Can CLOS provide for the separation of > types and classes (or any kind of multiple implementations per type)? I'm not sure what this means. It's certainly possible to have a class (eg, STACK) with subclasses for different implementations (eg, vector in one, list in another). But in Common Lisp every class is a type, so it's not possible to separate them unless by "type" you mean something different than Common Lisp does. But then I can't tell which of the alternative definitions yoiu have in mind. Nor do I know what you mean by "default protection". > P.S. Going typeless is not an acceptable answer. Why not? What problem will I have in pracrtice (as opposed to theory)? -- jd
Technical Details
Message-ID:
<26206.9209041614@subnode.aiai.ed.ac.uk>Path:
arc1-ca.pugleaf.net!sparky!uunet!gatech!usenet.ins.cwru.edu!magnus.acs.ohio-state.edu!cis.ohio-state.edu!aiai.edinburgh.ac.uk!jeffShow Full Headers
Complete Article Headers
Newsgroups: comp.lang.clos Path: arc1-ca.pugleaf.net!sparky!uunet!gatech!usenet.ins.cwru.edu!magnus.acs.ohio-state.edu!cis.ohio-state.edu!aiai.edinburgh.ac.uk!jeff From: jeff@aiai.edinburgh.ac.uk (Jeff Dalton) Subject: Re: Object-Oriented Methodologies - Class Specifications Message-ID: <26206.9209041614@subnode.aiai.ed.ac.uk> Sender: daemon@cis.ohio-state.edu Organization: The Ohio State University Department of Computer and Information Science Date: Fri, 4 Sep 1992 16:14:54 GMT Lines: 26