[Mono-list] implicit, explicit, and why does C# have these?

Luciano Callero lnc19@hotmail.com
Fri, 17 Oct 2003 11:05:02 -0300

Yes, it is a good think (for me) beacause you can not mistake and lost data.

>From: "Arild Fines" <arild.fines@broadpark.no>
>To: "David La Motta" <dlamotta@email.com>,"Jonathan Pryor" 
>CC: "Mono-List" <Mono-list@lists.ximian.com>
>Subject: RE: [Mono-list] implicit, explicit, and why does C# have these?
>Date: Fri, 17 Oct 2003 15:42:07 +0200
>MIME-Version: 1.0
>Received: from mc2-f18.hotmail.com ([]) by mc2-s5.hotmail.com 
>with Microsoft SMTPSVC(5.0.2195.5600); Fri, 17 Oct 2003 06:49:55 -0700
>Received: from listsmx.ximian.com ([]) by mc2-f18.hotmail.com 
>with Microsoft SMTPSVC(5.0.2195.5600); Fri, 17 Oct 2003 06:46:23 -0700
>Received: from headcheese.ximian.com (localhost [])by 
>listsmx.ximian.com (Postfix) with ESMTPid 67EB3124933; Fri, 17 Oct 2003 
>09:43:06 -0400 (EDT)
>Received: by listsmx.ximian.com (Postfix, from userid 38)id 97CE0124476; 
>Fri, 17 Oct 2003 09:42:37 -0400 (EDT)
>Received: from mail.broadpark.no (mail.broadpark.no [])by 
>listsmx.ximian.com (Postfix) with ESMTP id B99121241E0for 
><Mono-list@lists.ximian.com>; Fri, 17 Oct 2003 09:42:05 -0400 (EDT)
>Received: from meadow (21.80-203-35.nextgentel.com [])by 
>mail.broadpark.no (Postfix) with SMTPid D1BBA7944E; Fri, 17 Oct 2003 
>15:41:47 +0200 (MEST)
>X-Message-Info: g+YnDTwJTP6uKIyRgq5SoaeVfeAc4LOkWn66QNoJgTY=
>Message-ID: <AJEELJINGEGOMNJPJFKKCEIEDCAA.arild.fines@broadpark.no>
>X-Priority: 3 (Normal)
>X-MSMail-Priority: Normal
>X-Mailer: Microsoft Outlook IMO, Build 9.0.2416 (9.0.2911.0)
>In-Reply-To: <3F8FED42.4020003@email.com>
>X-MimeOLE: Produced By Microsoft MimeOLE V6.00.3790.0
>Importance: Normal
>X-Spam-Status: No, hits=-25.2 
>X-Spam-Level: X-Spam-Checker-Version: SpamAssassin 2.53 
>Sender: mono-list-admin@lists.ximian.com
>Errors-To: mono-list-admin@lists.ximian.com
>X-BeenThere: mono-list@lists.ximian.com
>X-Mailman-Version: 2.0.13
>Precedence: bulk
>List-Help: <mailto:mono-list-request@lists.ximian.com?subject=help>
>List-Post: <mailto:mono-list@lists.ximian.com>
>List-Id: Mono Developer Discussion List <mono-list.lists.ximian.com>
>List-Archive: <http://lists.ximian.com/archives/public/mono-list/>
>Return-Path: mono-list-admin@lists.ximian.com
>X-OriginalArrivalTime: 17 Oct 2003 13:46:26.0226 (UTC) 
>David La Motta wrote:
> > Thanks for the explanation.  I can see how the implicit operator can
> > be useful in the example you describe; still, I think it wasn't
> > necessary for C# to expose them to us.  I.e., let us deal with the
> > explicit casts and spare the confusion they may cause.  In other
> > words, an implicit cast from a Pear object to a Truck object can seem
> > quite odd, assuming their inheritance tree has nothing in common.
>Sure, but would you really want to be required to use an explicit cast when
>converting an int to a long?
>AnkhSVN: http://ankhsvn.tigris.org
>Blog: http://ankhsvn.com/blog
>RSS: http://ankhsvn.com/blog/Rss.aspx
>King Crimson lives in different bodies at different times and the
>particular form which the group takes changes. When music appears,
>which only King Crimson can play then, sooner or later, King Crimson
>appears to play the music
>Mono-list maillist  -  Mono-list@lists.ximian.com

Charla con tus amigos en línea mediante MSN Messenger: