From: Steven Verver
Subject: which lisp compiler supports 'defflavor'?
Date: 
Message-ID: <327cd4d4.7092117@news.euro.net>
Hello,

I'm totally, extremely and terribly new in LISP, and I have a piece of
code where all kinds of 'defflavors' are being used. For example:

(defflavor probability-distribution
    (probability-vector length probability-sum pname)
    ()
  :gettable-instance-variables
  :settable-instance-variables
  :initable-instance-variables)

(to make sure who you're talking to: I don't have the faintest clue
what this means. But I just want to get the code running for now).

The strange thing is that one compiler I tried complains that
'defflavor' is an undefined function (sun common lisp, version
unknown), while another (CL Allegro lite) says that  'probability
distribution' is an unbound variable.

So, does anybody have a clue whether there's a compiler which can
handle these things, or there is some workaround on this?

Thanks in advance,

Steven Verver

From: Rainer Joswig
Subject: Re: which lisp compiler supports 'defflavor'?
Date: 
Message-ID: <joswig-ya023180000311962032050001@news.lavielle.com>
In article <················@news.euro.net>, ······@fwi.uva.nl wrote:

> Hello,
> 
> I'm totally, extremely and terribly new in LISP, and I have a piece of
> code where all kinds of 'defflavors' are being used. For example:

> (to make sure who you're talking to: I don't have the faintest clue
> what this means. But I just want to get the code running for now).

Maybe this code is written for a Symbolics (or something similar).
Flavors was the OOP extension of these beasts.

> The strange thing is that one compiler I tried complains that
> 'defflavor' is an undefined function (sun common lisp, version
> unknown), while another (CL Allegro lite) says that  'probability
> distribution' is an unbound variable.

Both versions don't have Flavors support built in. Nowadays
Common Lisp uses CLOS instead of Flavors.

Recently there was a posting of someone asking for Flavors support
in Common Lisp. Search in the archives for it.
From: Barry Margolin
Subject: Re: which lisp compiler supports 'defflavor'?
Date: 
Message-ID: <55khve$dcc@poblano.near.net>
In article <················@news.euro.net>,
Steven Verver <······@fwi.uva.nl> wrote:
>The strange thing is that one compiler I tried complains that
>'defflavor' is an undefined function (sun common lisp, version
>unknown), while another (CL Allegro lite) says that  'probability
>distribution' is an unbound variable.

Sun Common Lisp (AKA Lucid Common Lisp) includes a Flavors compatibility
package.  Try putting (require 'flavors) in your program.
-- 
Barry Margolin
BBN Planet, Cambridge, MA
······@bbnplanet.com -  Phone (617) 873-3126 - Fax (617) 873-5508
(BBN customers, please call (800) 632-7638 option 1 for support)
From: Kai Zimmermann
Subject: Re: which lisp compiler supports 'defflavor'?
Date: 
Message-ID: <564oub$18q@rzsun02.rrz.uni-hamburg.de>
Steven Verver (······@fwi.uva.nl) wrote:
: Hello,
: I'm totally, extremely and terribly new in LISP, and I have a piece of
: code where all kinds of 'defflavors' are being used. For example:
: (defflavor probability-distribution
:     (probability-vector length probability-sum pname)
:     ()
:   :gettable-instance-variables
:   :settable-instance-variables
:   :initable-instance-variables)
...
: So, does anybody have a clue whether there's a compiler which can
: handle these things, or there is some workaround on this?
: Thanks in advance,
: Steven Verver


Hello Steven,
below is an old posting refering to an implementation of flavors in CLOS.
As Rainer Joswig pointed out, flavors is the old OO-extension of lisp used on
Symbolics lisp machines.  The article refers to a Mac version but
I think there is a Unix version, too.   

Regards,
Kai

--


From: Juergen Walther <···············@gmd.de>
Newsgroups: comp.lang.lisp.mcl
Subject: Re: Flavors
Date: Fri, 18 Oct 1996 15:25:15 +0200

look at fmcs, an common lisp implementation of FLAVORS, which is part of 
babylon, which is available on the MCL CD-ROM and MCL ftp side or look 
at

ftp://ftp.gmd.de/GMD/ai-research/Software/Babylon/

greetings
Juergen Walther