home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.sys.mac.programmer
- Path: sparky!uunet!spool.mu.edu!darwin.sura.net!mojo.eng.umd.edu!russotto
- From: russotto@eng.umd.edu (Matthew T. Russotto)
- Subject: Re: Duplicate Object in Think C?
- Message-ID: <1992Dec20.160310.28061@eng.umd.edu>
- Date: Sun, 20 Dec 92 16:03:10 GMT
- Organization: Project GLUE, University of Maryland, College Park
- References: <white.724729120@sfu.ca>
- Lines: 22
-
- In article <white.724729120@sfu.ca> white@fraser.sfu.ca (Steve White) writes:
- >How do you duplicate an object without knowing its class? We would like
- >to write something like
- [...]
- >sizeof( class_name )
- >
- >will return the size of an object in a class. We get "illegal use of
- >class type" when we try to compile, e.g.,
- >
- >sizeof( Window )
-
- You can't get the size of an object which has private members (except
- within that object).
-
- And since typing is done at compile time, you can't set the type of an
- object through assigment. I think you are trying to do something not
- supported by the paradigm.
- --
- Matthew T. Russotto russotto@eng.umd.edu russotto@wam.umd.edu
- Some news readers expect "Disclaimer:" here.
- Just say NO to police searches and seizures. Make them use force.
- (not responsible for bodily harm resulting from following above advice)
-