From: John M. Adams
Subject: CLOS -> Rational Rose
Date: 
Message-ID: <xaowvgrkkog.fsf@anarky.sogs.stsci.edu>
Has anyone written code to generate input for Rational Rose from a
CLOS system?

-- 
John M. Adams

From: Reini Urban
Subject: Re: CLOS -> Rational Rose
Date: 
Message-ID: <39b63902.5433072@judy>
John M. Adams wrote:
>Has anyone written code to generate input for Rational Rose from a
>CLOS system?

Do you mean a rose extension parsing CLOS classes? Would like to have
this as well. Haven't studied the OLE Automation model very well but the
export has all the required API calls. No big deal to drive this with
ACL.

A colleague did it the other way round, generating CLOS classes from
rose models via OLE Automation, driven by lisp. And only for a AutoLISP
clone of CLOS, called SageCLOS. 
  This has a different syntax than CL. Basically all macro arguments are
  quoted because there are no macros in AutoLISP.
--
Reini Urban
http://xarch.tu-graz.ac.at/autocad/news/faq/autolisp.html
From: David Bakhash
Subject: Re: CLOS -> Rational Rose
Date: 
Message-ID: <m3g0n9uymx.fsf@cadet.dsl.speakeasy.net>
·······@stsci.edu (John M. Adams) writes:

> Has anyone written code to generate input for Rational Rose from a
> CLOS system?

Just talked to a Java/Lisp developer who's got years of RR.  She said
NO.  But she also said to call RR and ask them to be sure.

dave
From: John M. Adams
Subject: Re: CLOS -> Rational Rose
Date: 
Message-ID: <xaoem2rgiif.fsf@anarky.sogs.stsci.edu>
David Bakhash <·····@alum.mit.edu> writes:

> ·······@stsci.edu (John M. Adams) writes:
> 
> > Has anyone written code to generate input for Rational Rose from a
> > CLOS system?
> 
> Just talked to a Java/Lisp developer who's got years of RR.  She said
> NO.  But she also said to call RR and ask them to be sure.

Thanks for the comments.

What I've ended up doing is writing a function that generates C++
given a class object and feeding this to the RR analyzer.  It works
well enough for my purpose despite bits of fudge to deal with the likes
of methods with consp names ((setf blah)) and eql specializers.

-- 
John M. Adams
From: David Bakhash
Subject: Re: CLOS -> Rational Rose
Date: 
Message-ID: <m3wvgjaxrh.fsf@cadet.dsl.speakeasy.net>
·······@stsci.edu (John M. Adams) writes:

> David Bakhash <·····@alum.mit.edu> writes:
> 
> > ·······@stsci.edu (John M. Adams) writes:
> > 
> > > Has anyone written code to generate input for Rational Rose from a
> > > CLOS system?
> > 
> > Just talked to a Java/Lisp developer who's got years of RR.  She said
> > NO.  But she also said to call RR and ask them to be sure.
> 
> Thanks for the comments.
> 
> What I've ended up doing is writing a function that generates C++
> given a class object and feeding this to the RR analyzer.  It works
> well enough for my purpose despite bits of fudge to deal with the likes
> of methods with consp names ((setf blah)) and eql specializers.

That's odd, considering that in C++ all the method definitions are in
a single file, and lexically inside the call to `class'.  Do you first 
process lots of CL code and then, when it's all done, just output this 
C++ code?

Well, any way that you do it, I think it's neat, and if it's not too
much code, and it's non-proprietary, I'd like to see how you hacked
out way out of that bind.

dave
From: John M. Adams
Subject: Re: CLOS -> Rational Rose
Date: 
Message-ID: <xao4s3lfnl9.fsf@anarky.sogs.stsci.edu>
David Bakhash <·····@alum.mit.edu> writes:

> ·······@stsci.edu (John M. Adams) writes:
> 
> > David Bakhash <·····@alum.mit.edu> writes:
> > 
> > > ·······@stsci.edu (John M. Adams) writes:
> > > 
> > > > Has anyone written code to generate input for Rational Rose from a
> > > > CLOS system?
> > > 
> > > Just talked to a Java/Lisp developer who's got years of RR.  She said
> > > NO.  But she also said to call RR and ask them to be sure.
> > 
> > Thanks for the comments.
> > 
> > What I've ended up doing is writing a function that generates C++
> > given a class object and feeding this to the RR analyzer.  It works
> > well enough for my purpose despite bits of fudge to deal with the likes
> > of methods with consp names ((setf blah)) and eql specializers.
> 
> That's odd, considering that in C++ all the method definitions are in
> a single file, and lexically inside the call to `class'.  Do you first 
> process lots of CL code and then, when it's all done, just output this 
> C++ code?

It doesn't read code.  It gets everything from metaobject readers.

> Well, any way that you do it, I think it's neat, and if it's not too
> much code, and it's non-proprietary, I'd like to see how you hacked
> out way out of that bind.

It's about a page.  If anybody wants it, send email.  It's kinda
scruffy at the moment.  I'll probably clean it up over the weekend.

-- 
John M. Adams
From: Philip Lijnzaad
Subject: Re: CLOS -> Rational Rose
Date: 
Message-ID: <u7lmwy7s4v.fsf@o2-3.ebi.ac.uk>
On 09 Sep 2000 15:57:26 -0400, 
"David" == David Bakhash <·····@alum.mit.edu> writes:

David> ·······@stsci.edu (John M. Adams) writes:
>> Has anyone written code to generate input for Rational Rose from a
>> CLOS system?

David> Just talked to a Java/Lisp developer who's got years of RR.  She said
David> NO.  But she also said to call RR and ask them to be sure.

Mmm. The .mdl format (or was that the .ptl (Petal) files?) looked actually
fairly lispy (one of their sales reps confused it with Prolog ...), with
parens to delimit groups, and whitespace to separate list elts.  So I suspect
at least someone at RatRose must have had exposure to Lisp (tho prolly not
CLOS).
                                                                      Philip
-- 
When C++ is your hammer, everything looks like a thumb. (Steven Haflich)
-----------------------------------------------------------------------------
Philip Lijnzaad, ········@ebi.ac.uk \ European Bioinformatics Institute,rm A2-24
+44 (0)1223 49 4639                 / Wellcome Trust Genome Campus, Hinxton
+44 (0)1223 49 4468 (fax)           \ Cambridgeshire CB10 1SD,  GREAT BRITAIN
PGP fingerprint: E1 03 BF 80 94 61 B6 FC  50 3D 1F 64 40 75 FB 53