зеркало из https://github.com/mono/mail-archives.git
99 строки
3.2 KiB
HTML
99 строки
3.2 KiB
HTML
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
|
|
<HTML>
|
|
<HEAD>
|
|
<TITLE> [Mono-list] Const weirdness, revisited...
|
|
</TITLE>
|
|
<LINK REL="Index" HREF="index.html" >
|
|
<LINK REL="made" HREF="mailto:tom%40verbreyt.be">
|
|
<META NAME="robots" CONTENT="index,nofollow">
|
|
|
|
<LINK REL="Previous" HREF="025836.html">
|
|
<LINK REL="Next" HREF="025844.html">
|
|
</HEAD>
|
|
<BODY BGCOLOR="#ffffff">
|
|
<H1>[Mono-list] Const weirdness, revisited...
|
|
</H1>
|
|
<B>Tom
|
|
</B>
|
|
<A HREF="mailto:tom%40verbreyt.be"
|
|
TITLE="[Mono-list] Const weirdness, revisited...">tom@verbreyt.be
|
|
</A><BR>
|
|
<I>Sat, 19 Feb 2005 15:05:06 +0100</I>
|
|
<P><UL>
|
|
<LI> Previous message: <A HREF="025836.html">[Mono-list] Const weirdness, revisited...
|
|
</A></li>
|
|
<LI> Next message: <A HREF="025844.html">[Mono-list] Const weirdness, revisited...
|
|
</A></li>
|
|
<LI> <B>Messages sorted by:</B>
|
|
<a href="date.html#25837">[ date ]</a>
|
|
<a href="thread.html#25837">[ thread ]</a>
|
|
<a href="subject.html#25837">[ subject ]</a>
|
|
<a href="author.html#25837">[ author ]</a>
|
|
</LI>
|
|
</UL>
|
|
<HR>
|
|
<!--beginarticle-->
|
|
<PRE>--nextPart2813822.CA7aR85trD
|
|
Content-Type: text/plain;
|
|
charset="iso-8859-1"
|
|
Content-Transfer-Encoding: quoted-printable
|
|
Content-Disposition: inline
|
|
|
|
[Saturday 19 February 2005 13:56] Mario Sopena
|
|
(Re: [Mono-list] Const weirdness, revisited...):
|
|
|
|
><i> > const int meh =3D 5;
|
|
</I>><i> > meh =3D 10;
|
|
</I>><i>
|
|
</I>><i> I have tested with mono 1.0.5 and it compiles, but, at runtime, the
|
|
</I>><i> line meh=3D10 doesn't make anything (you can test it yourself adding
|
|
</I>><i> Console.WriteLine), the value of meh doesn't change.
|
|
</I>
|
|
Right. Why didn't I even think of testing it a tad more thoroughly...
|
|
|
|
><i> But, the Microsoft compiler argues by saying:
|
|
</I>><i> "error CS0131: The left-hand side of an assignment must be a
|
|
</I>><i> variable, property or indexer"
|
|
</I>><i> on the line meh=3D10.
|
|
</I>
|
|
Exactly, I *did* check on that. I would expect the same behaviour from=20
|
|
Mono, and I think it's quite an obvious bug indeed (i.e. I cannot think=20
|
|
of any rational decision that might have been made about this).
|
|
|
|
Thanks,
|
|
Tom
|
|
|
|
=2D-=20
|
|
key: <A HREF="http://tmp.verbreyt.be/files/abwaerts.asc">http://tmp.verbreyt.be/files/abwaerts.asc</A>
|
|
|
|
--nextPart2813822.CA7aR85trD
|
|
Content-Type: application/pgp-signature
|
|
|
|
-----BEGIN PGP SIGNATURE-----
|
|
Version: GnuPG v1.4.0 (GNU/Linux)
|
|
|
|
iD8DBQBCF0eXLssppf5L8NYRAuxJAJwMyBWu46ZCkEpNR84OVOWR4chEUACgm494
|
|
aRpkyH+0MIgpUt6n1pjh8F8=
|
|
=QxoF
|
|
-----END PGP SIGNATURE-----
|
|
|
|
--nextPart2813822.CA7aR85trD--
|
|
|
|
</PRE>
|
|
<!--endarticle-->
|
|
<HR>
|
|
<P><UL>
|
|
<!--threads-->
|
|
<LI> Previous message: <A HREF="025836.html">[Mono-list] Const weirdness, revisited...
|
|
</A></li>
|
|
<LI> Next message: <A HREF="025844.html">[Mono-list] Const weirdness, revisited...
|
|
</A></li>
|
|
<LI> <B>Messages sorted by:</B>
|
|
<a href="date.html#25837">[ date ]</a>
|
|
<a href="thread.html#25837">[ thread ]</a>
|
|
<a href="subject.html#25837">[ subject ]</a>
|
|
<a href="author.html#25837">[ author ]</a>
|
|
</LI>
|
|
</UL>
|
|
</body></html>
|