On Aug 30, 2005, at 4:59 PM, Joseph J. Strout wrote:
At 4:36 PM -0500 8/30/05, William Squires wrote:
I'm not saying to 'New' a reference to "Object", as you can't -
it's an abstract class; intended only to be subclassed. You 'New' a
reference to some other subclass (that's not abstract), then assign
the reference thereof to a variable (or array) of type
'reference-to-Object' so that you can take advantage of polymorphism
without type-mismatch errors.
This thread is about actually, literally, saying "New Object".
Apparently that generates an error in REALbasic 2005, though it was
allowed in 5.5.
Which I would expect it (RB 2005) to, given that an instance of
"Object" has no substance, per se. What would the reference point to? A
MemoryBlock of size 0? Some random location in memory with garbage in
it? An Integer? A '/0' byte representing an 'empty' C-string?
Best,
- Joe
--
Joe Strout REAL Software, Inc.
Vote for REALbasic (twice!) in the LinuxWorld Reader's Choice Awards:
http://linux.sys-con.com/general/readerschoice.htm
_______________________________________________
Unsubscribe or switch delivery mode:
<http://www.realsoftware.com/support/listmanager/>
Search the archives of this list here:
<http://support.realsoftware.com/listarchives/lists.html>
A compiler is a tool for turning source code into error messages;
generating machine language bytes is just a fortuitous by-product!
_______________________________________________
Unsubscribe or switch delivery mode:
<http://www.realsoftware.com/support/listmanager/>
Search the archives of this list here:
<http://support.realsoftware.com/listarchives/lists.html>
|