Talk About Network

Google


Register and Login
Nick
Password
Register create new account Sign up is FREE and you can post replies, new topics, bookmark posts and more!
Recover lost password


Programming > Lisp > Re: complex inh...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 7 of 7 Topic 12447 of 13603
Post > Topic >>

Re: complex inheritance scheme using mixins

by Albert Krewinkel <krewinkel@[EMAIL PROTECTED] > May 12, 2008 at 06:06 PM

Madhu <enometh@[EMAIL PROTECTED]
> writes:

> [Just an experience re****t, YMMV]
>
> * Albert Krewinkel <fwuve1o62ho.fsf@[EMAIL PROTECTED]
> :
> Wrote on Thu, 08 May 2008 21:05:07 +0200:
>
> | Now instead of having to write all disk-streams following the above
> | scheme by hand, I'd like to be able to do
> |
> |  (define-cross-product-cl***** stream-class-graph disk)
>
> I have more than once felt I needed something like this.  However,
> invariably I've ended up abandoning defining cl***** via ENSURE-CLASS
> mechanisms, preferring instead the explicit DEFCLASS definitions in a
> static file [which the editor can jump to].

Kind of true.  But slime is still helpfull, as it puts me to the
class-generating macro call, which I can expand easily.  That's only one
step more than using nothing but defclass.  You are probably aware of
this, so, uhm, if it's more than personal taste, the reason is hidden
somewhere in the thread.  I will have to examine it closer.

>  The rules of my
> `define-cross-product' equivalent however turned out to be useful to
> both generate the boiler plate which generated the file initially (few
> iterations before settling on class names) and also to write tests to
> check the class structure of the [semi automatically generated] cl*****.
>
> However in all my cases, the class relations were fairly static, I
> suspect they are in your case too.  For the other case, see
>
> See the CLL thread from last October 2007
>
<URL:http://groups.google.com/group/comp.lang.lisp/browse_thread/thread/78ef4a5fcd6a1661/e95e42b3307c91cd?#e95e42b3307c91cd>

Cool, thanks!  I didn't read all what's there yet, but it looks very
much like the stuff I looked for.

Thanks also to Rainer Joswig for pointing out the difference between
multiple inheritance and mixins.  I was sloppy there.
 




 7 Posts in Topic:
complex inheritance scheme using mixins
Albert Krewinkel <krew  2008-05-08 21:05:07 
Re: complex inheritance scheme using mixins
Ken Tilton <kennytilto  2008-05-08 16:35:47 
Re: complex inheritance scheme using mixins
"joswig@[EMAIL PROTE  2008-05-08 14:09:21 
Re: complex inheritance scheme using mixins
Albert Krewinkel <krew  2008-05-08 23:33:25 
Re: complex inheritance scheme using mixins
Ken Tilton <kennytilto  2008-05-08 18:41:35 
Re: complex inheritance scheme using mixins
Madhu <enometh@[EMAIL   2008-05-09 07:29:45 
Re: complex inheritance scheme using mixins
Albert Krewinkel <krew  2008-05-12 18:06:50 

Post A Reply:
  Go here to Signup

AddThis Feed Button


About - Advertising - Contact - Frequently Asked Questions - Privacy Policy - Terms of Use - Signup

Contact
tan12V112 Sat Oct 11 2:11:01 CDT 2008.