[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"
><jonpryor@vt.edu>
>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 ([65.54.237.25]) 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 ([141.154.95.15]) 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 [127.0.0.1])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 [217.13.4.2])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 [80.203.35.21])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
>required=5.0tests=EMAIL_ATTRIBUTION,IN_REP_TO,MSGID_GOOD_EXCHANGE,
>QUOTED_EMAIL_TEXT,REPLY_WITH_QUOTESversion=2.53
>X-Spam-Level: X-Spam-Checker-Version: SpamAssassin 2.53
>(1.174.2.15-2003-03-30-exp)
>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-Subscribe:
><http://lists.ximian.com/mailman/listinfo/mono-list>,<mailto:mono-list-request@lists.ximian.com?subject=subscribe>
>List-Id: Mono Developer Discussion List <mono-list.lists.ximian.com>
>List-Unsubscribe:
><http://lists.ximian.com/mailman/listinfo/mono-list>,<mailto:mono-list-request@lists.ximian.com?subject=unsubscribe>
>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)
>FILETIME=[0F3EA120:01C394B5]
>
>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?
>
>
>--
>Arild
>
>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
>http://lists.ximian.com/mailman/listinfo/mono-list
_________________________________________________________________
Charla con tus amigos en línea mediante MSN Messenger:
http://messenger.yupimsn.com/