Re: [Mono-list] NET_1_1 Co.
On Fri, Jul 23, 2004 at 03:40:12PM +0200, Jochen Wezel wrote: While reviewing code, I've seen in System.Environment: #if NET_1_1 static #endif I would write #if not NET_1_0 since I expect that in 2.x this static won't change. But if I reason correctly, this static item would get unstatic with this current grammar in DotNet 2.x. In mcs/class/README it says: * Supporting .NET 1.2, .NET 1.1 and .NET 1.0 builds The defines NET_1_1 and NET_2_0 are used to include features. When NET_2_0 is defined, it also implies that the NET_1_1 is defined. To have code which is only available in an old version, use ONLY_1_0, ONLY_1_1 The code you quoted is therefore correct. -- Malcolm Parsons ___ Mono-list maillist - [EMAIL PROTECTED] http://lists.ximian.com/mailman/listinfo/mono-list
[Mono-list] NET_1_1 Co.
Title: NET_1_1 Co. Hi! While reviewing code, I've seen in System.Environment: #if NET_1_1 static #endif public extern bool HasShutdownStarted { [MethodImplAttribute (MethodImplOptions.InternalCall)] get; } I would write #if not NET_1_0 since I expect that in 2.x this static won't change. But if I reason correctly, this static item would get unstatic with this current grammar in DotNet 2.x. Regards Jochen CompuMaster GmbH Agentur für moderne Kommunikation Jochen Wezel, Multimedia-Programmierung Rhein-Mosel-Straße 69, 56281 Emmelshausen, GERMANY Fon: +49 6747 95084-12 / Fax: +49 6747 95084-50 http://www.compumaster.de eMail: [EMAIL PROTECTED] +++ Mitglied im DEUTSCHEN MULTIMEDIA VERBAND d m m v, http://www.dmmv.de +++ Unsere aktuellen AGBs befinden sich auf unserer Website im Bereich Rechtliches Diese eMail enthält vertrauliche und/oder rechtlich geschützte Informationen. Wenn Sie nicht der richtige Adressat sind oder diese E-Mail irrtümlich erhalten haben, informieren Sie bitte sofort den Absender und vernichten Sie diese Mail. Das unerlaubte Kopieren sowie die unbefugte Weitergabe dieser Mail ist nicht gestattet. This e-mail may contain confidential and/or privileged information. If you are not the intended recipient (or have received this e-mail in error) please notify the sender immediately and destroy this e-mail. Any unauthorized copying, disclosure or distribution of the material in this e-mail is strictly forbidden.
Re: [Mono-list] NET_1_1 Co.
Title: NET_1_1 & Co. Hi Jochen, If you have windows installed you can download the public beta of the vs.net whidbey express edition. it comes with .net framework 2.0 get it at lab.msdn.microsoft.com Matthijs ter Woord - Original Message - From: Jochen Wezel To: mono-list Sent: Friday, July 23, 2004 3:40 PM Subject: [Mono-list] NET_1_1 Co. Hi! While reviewing code, I've seen in System.Environment: #if NET_1_1 static #endif public extern bool HasShutdownStarted { [MethodImplAttribute (MethodImplOptions.InternalCall)] get; } I would write #if not NET_1_0 since I expect that in 2.x this "static" won't change. But if I reason correctly, this "static" item would get "unstatic" with this current grammar in DotNet 2.x. Regards Jochen CompuMaster GmbH Agentur für moderne Kommunikation Jochen Wezel, Multimedia-Programmierung Rhein-Mosel-Straße 69, 56281 Emmelshausen, GERMANY Fon: +49 6747 95084-12 / Fax: +49 6747 95084-50 http://www.compumaster.de eMail: [EMAIL PROTECTED] +++ Mitglied im DEUTSCHEN MULTIMEDIA VERBAND d m m v, http://www.dmmv.de +++ Unsere aktuellen AGBs befinden sich auf unserer Website im Bereich "Rechtliches" Diese eMail enthält vertrauliche und/oder rechtlich geschützte Informationen. Wenn Sie nicht der richtige Adressat sind oder diese E-Mail irrtümlich erhalten haben, informieren Sie bitte sofort den Absender und vernichten Sie diese Mail. Das unerlaubte Kopieren sowie die unbefugte Weitergabe dieser Mail ist nicht gestattet. This e-mail may contain confidential and/or privileged information. If you are not the intended recipient (or have received this e-mail in error) please notify the sender immediately and destroy this e-mail. Any unauthorized copying, disclosure or distribution of the material in this e-mail is strictly forbidden.