[Mono-list] const weirdness
Ravi Pratap M
ravi@ximian.com
07 Apr 2002 17:15:51 -0500
On Sun, 2002-04-07 at 03:31, Jonathan Stowe wrote:
> Precisely, I was testing that it did indeed fail as it should.
I am pretty sure it fails as expected under Windows - could you check
if you have access to Windows with .NET SDK ?
> csc will fail with "The left-hand side of an assignment must be a
> variable, property or indexer".
Yes, that's what we should be reporting too.
> My point was more that it probably shouldn't fail with an unhandled
> exception and also, unless the stack trace is bogus, it appears to be
> failing for the wrong reason.
The stacktrace is not bogus - notice that it goes as far as
Mono.CSharp.Report.Error which is the error reporting routine inside mcs
which makes a call to System.String.Format and the crash is related to
that.
Regards,
Ravi
--
"If you're smart, you'll be humble. There always is somebody
who hasn't read a book and knows twice as much as you do."
-- David Duchovny in Readers' Digest
Ravi Pratap M <ravi@ximian.com>
<http://primates.ximian.com/~ravi>