Newsgroups: rec.arts.int-fiction
From: jhepburn@tassie.net.au (Jonathan H )
Subject: [TADS] testing class?
Message-ID: <slrn9ovubh.2be.jhepburn@localhost.localdomain>
User-Agent: slrn/0.9.7.1 (Linux)
X-Original-NNTP-Posting-Host: 203.57.210.75
Date: 31 Aug 2001 20:50:21 +1000
Lines: 8
NNTP-Posting-Host: aphrodite.tassie.net.au
X-Original-NNTP-Posting-Host: aphrodite.tassie.net.au
X-Trace: 31 Aug 2001 20:54:32 +1000, aphrodite.tassie.net.au
Path: news.duke.edu!newsgate.duke.edu!nntp-out.monmouth.com!newspeer.monmouth.com!news.maxwell.syr.edu!sunqbc.risq.qc.ca!newspeer.cwnet.com!sjc1.nntp.concentric.net!newsfeed.concentric.net!newsfeed.ozemail.com.au!news.netspace.net.au!news.labyrinth.net.au!news.southcom.com.au!aphrodite.tassie.net.au!203.57.210.75
Xref: news.duke.edu rec.arts.int-fiction:91853

Is it possible, and if so how, to test the class of an object?  I'd like to
have containers that can refuse to accept any object not of a particular
class, without setting a flag in all possible items. Is this possible?
I can find lots of other tests based on properties, but can class be
tested in the same way as a property?

Cheers,
JH
