realbasic-nug
[Top] [All Lists]

Re: type-casting enumerations

To: REALbasic NUG <realbasic-nug at lists dot realsoftware dot com>
Subject: Re: type-casting enumerations
From: Mars Saxman <mars at realsoftware dot com>
Date: Tue, 30 May 2006 10:09:18 -0700
Delivered-to: listarchive at realsoftware dot com
Delivered-to: realbasic-nug at lists dot realsoftware dot com
References: <20060528170036 dot 73D8612AD313 at lists dot realsoftware dot com> <4302CBE8-6C59-4B79-8E36-3A6D88B4A637 at midsouth dot rr dot com>

On May 28, 2006, at 12:10 PM, Dr. Scott Steinman wrote:

I didn't think about that. I was mislead a bit by the error message, which didn't state that the typecast expected an integer and got a double; it stated that a class was expected for the typecast. For the sake of others who might run into this at some time, could the error message be made more informative?

Yeah, it does sound like an unhelpful error message. It's probably the same error message we used since before the typecasting operator was extended to support enumerations. Mind filing a bug report about it?

Mars Saxman
REAL Software
_______________________________________________
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>


<Prev in Thread] Current Thread [Next in Thread>