Account Options

  1. Sign in
The old Google Groups will be going away soon, but your browser is incompatible with the new version.
Google Groups Home
« Groups Home
Preventing a class from being instantiated
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  Messages 51 - 59 of 59 - Collapse all  -  Translate all to Translated (View all originals) < Older 
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
Carl Shapiro  
View profile  
 More options Dec 1 2001, 12:38 am
Newsgroups: comp.lang.lisp
From: Carl Shapiro <cshap...@panix.com>
Date: 01 Dec 2001 00:38:45 -0500
Local: Sat, Dec 1 2001 12:38 am
Subject: Re: Preventing a class from being instantiated
Kent M Pitman <pit...@world.std.com> writes:

> I think it's a design mistake that CL doesn't simply have a :abstract-class
> option.  Flavors had it (can't remember what it was called, but probably
> :abstract-flavor), and I'm not sure why it was omitted for CLOS.  Perhaps
> it was just accidental.  

ISLISP has a class option :abstractp which allows one to create
abstract classes.  How did it make its way in there?

 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Kenny Tilton  
View profile  
 More options Dec 1 2001, 1:09 am
Newsgroups: comp.lang.lisp
From: Kenny Tilton <ktil...@nyc.rr.com>
Date: Sat, 01 Dec 2001 06:08:15 GMT
Local: Sat, Dec 1 2001 1:08 am
Subject: Re: Preventing a class from being instantiated

> Kent M Pitman <pit...@world.std.com> writes:

> > I think it's a design mistake that CL doesn't simply have a :abstract-class
> > option.  

OK, i have a fix.

I suggest that any abstract class be named: @class-name@

there's a nice precedent in the fix we settled on for *specials* being
so different.

I like @ because it's got an "a" for abstract in it, and because:
sometimes I have heard the term "mix-in" used for such things, and the
full @ character looks like the swirl you get when you are mixing  stuff
in a bowl.

:)

kenny
clinisys


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Kent M Pitman  
View profile  
 More options Dec 1 2001, 2:31 am
Newsgroups: comp.lang.lisp
From: Kent M Pitman <pit...@world.std.com>
Date: Sat, 1 Dec 2001 07:30:32 GMT
Local: Sat, Dec 1 2001 2:30 am
Subject: Re: Preventing a class from being instantiated

Hmm.

I'll assume the :) at the end means I don't have to point out that * was
already in use as an operator name and so didn't rob the space of possible
readmacro characters but that @ is something some users might not want
taken away from them as such an option.  (I think ,@ is handled specially
in comma's syntax so that it wouldn't matter.)

So probably **class-name** is better.  Still leaving ***...***, etc. for
other purposes.

:)


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Erik Naggum  
View profile  
 More options Dec 1 2001, 8:45 am
Newsgroups: comp.lang.lisp
From: Erik Naggum <e...@naggum.net>
Date: Sat, 01 Dec 2001 13:45:41 GMT
Local: Sat, Dec 1 2001 8:45 am
Subject: Re: Preventing a class from being instantiated
* Kenny Tilton
| I suggest that any abstract class be named: @class-name@

  Please do not use up a very useful macro character like that.  This is
  almost as bad as suggesting that people actually _use_ $ as the first
  position in symbol names -- it is such an obvious thing to want to use
  for non-constituent macro purposes.  % is always available as a normal
  constituent character and is frequently used to mar "internal" symbols,
  which to me seems what an abstract class is, but I do _not_ see the need
  for syntactic suger-coating of symbol names just to keep losers from
  instantiating an abstract class.

///
--
  THE past is not more important than the future, despite what your culture
  has taught you.  Your future observations, conclusions, and beliefs are
  more important to you than those in your past ever will be.  The world is
  changing so fast the balance between the past and the future has shifted.


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Vassil Nikolov  
View profile  
 More options Dec 1 2001, 11:38 am
Newsgroups: comp.lang.lisp
From: vnikolo...@poboxes.com (Vassil Nikolov)
Date: 1 Dec 2001 08:38:14 -0800
Local: Sat, Dec 1 2001 11:38 am
Subject: Re: Preventing a class from being instantiated
Kent M Pitman <pit...@world.std.com> wrote in message <news:sfwadx3tn1j.fsf@shell01.TheWorld.com>...

> Kenny Tilton <ktil...@nyc.rr.com> writes:
[...]
> > I suggest that any abstract class be named: @class-name@
[...]
> > :)
[...]
> So probably **class-name** is better.  Still leaving ***...***, etc. for
> other purposes.

> :)

And using gensyms as names of `abstract' classes is left as an exercise
for the programmer...

:)

---Vassil.


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Marco Antoniotti  
View profile  
 More options Dec 1 2001, 1:17 pm
Newsgroups: comp.lang.lisp
From: Marco Antoniotti <marc...@cs.nyu.edu>
Date: 01 Dec 2001 13:17:37 -0500
Local: Sat, Dec 1 2001 1:17 pm
Subject: Re: Preventing a class from being instantiated

Erik Naggum <e...@naggum.net> writes:
> * Kenny Tilton
> | I suggest that any abstract class be named: @class-name@

>   Please do not use up a very useful macro character like that.  This is
>   almost as bad as suggesting that people actually _use_ $ as the first
>   position in symbol names -- it is such an obvious thing to want to use
>   for non-constituent macro purposes.  % is always available as a normal
>   constituent character and is frequently used to mar "internal" symbols,
>   which to me seems what an abstract class is, but I do _not_ see the need
>   for syntactic suger-coating of symbol names just to keep losers from
>   instantiating an abstract class.

As an aside, using '$' breaks under (older?) versions of MCL.  This is
the reason why the infix package uses

        #I(a + b)

instead of the LaTeX-ish

        $a + b$

(as it did in an earlier version).

Cheers

--
Marco Antoniotti ========================================================
NYU Courant Bioinformatics Group        tel. +1 - 212 - 998 3488
719 Broadway 12th Floor                 fax  +1 - 212 - 995 4122
New York, NY 10003, USA                 http://bioinformatics.cat.nyu.edu
                    "Hello New York! We'll do what we can!"
                           Bill Murray in `Ghostbusters'.


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Bradley J Lucier  
View profile  
 More options Dec 3 2001, 12:06 pm
Newsgroups: comp.lang.lisp
From: b...@cs.purdue.edu (Bradley J Lucier)
Date: 3 Dec 2001 12:04:10 -0500
Local: Mon, Dec 3 2001 12:04 pm
Subject: Re: Preventing a class from being instantiated
I've used virtual classes a bit in Meroon, a CLOS-like (sort-of) object
system for Scheme.  After struggling with things a bit, I decided that
I shouldn't use virtual classes unless the virtual class defines at least some
slots that will be common to all subclasses of the class.  Otherwise,
having the virtual classes just get in the way.

Brad


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Brian P Templeton  
View profile  
 More options Dec 4 2001, 8:37 pm
Newsgroups: comp.lang.lisp
From: Brian P Templeton <b...@tunes.org>
Date: Wed, 05 Dec 2001 01:37:41 GMT
Local: Tues, Dec 4 2001 8:37 pm
Subject: Re: Preventing a class from being instantiated

BPT's collary to Godwin's law: As a Usenet discussion grows longer,
the probability of a comparison involving Osama bin Laden or al Queda
approaches one.

:)

[...]

--
BPT <b...@tunes.org>                  /"\ ASCII Ribbon Campaign
backronym for Linux:                    \ / No HTML or RTF in mail
        Linux Is Not Unix                        X  No MS-Word in mail
Meme plague ;)   --------->          / \ Respect Open Standards


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
cbbrowne  
View profile  
 More options Dec 4 2001, 8:52 pm
Newsgroups: comp.lang.lisp
From: cbbro...@acm.org
Date: Wed, 05 Dec 2001 01:46:16 GMT
Local: Tues, Dec 4 2001 8:46 pm
Subject: Re: Preventing a class from being instantiated
Brian P Templeton <b...@tunes.org> writes:

The strange part is that in the above, the two "leaders'" names could
be switched in position and it would make about the same amount of
sense in about the same way.

Another "strange but true" thing is that about the only
previously-known use (before the O.b.L. situation) of the term "al
Quaeda" was as the title of the translation, into Arabic, of the
apparently-rather-popular-in-Arabic novel, _Foundation_, by Isaac
Asimov.  Some parallels between its story and the expectations of the
Arab terror network can be drawn.  

(On the other hand, Isaac Asimov was an atheist Russian Jew who moved
to the United States, and, more particularly, New York City.  None of
those qualities would appear terribly appealing to a terrorist network
that conspicuously despises Russians, Americans, Jews, and considers
itself a sort of "Hand of Allah.")
--
(reverse (concatenate 'string "moc.enworbbc@" "enworbbc"))
http://www.cbbrowne.com/info/x.html
"It is always convenient to have  villains whom you can have no qualms
about seeing  shot, blown up, or  run over by  large man-made objects;
the Gestapo are particularly appropriate for this."  -- Jeff Meyer


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages < Older 
« Back to Discussions « Newer topic     Older topic »