Yes, it is a good think (for me) beacause you can not mistake and lost data.
From: "Arild Fines" <[EMAIL PROTECTED]>
To: "David La Motta" <[EMAIL PROTECTED]>,"Jonathan Pryor" <[EMAIL PROTECTED]>
CC: "Mono-List" <[EMAIL PROTECTED]>
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 <[EMAIL PROTECTED]>; 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: <[EMAIL PROTECTED]>
X-Priority: 3 (Normal)
X-MSMail-Priority: Normal
X-Mailer: Microsoft Outlook IMO, Build 9.0.2416 (9.0.2911.0)
In-Reply-To: <[EMAIL PROTECTED]>
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: [EMAIL PROTECTED]
Errors-To: [EMAIL PROTECTED]
X-BeenThere: [EMAIL PROTECTED]
X-Mailman-Version: 2.0.13
Precedence: bulk
List-Help: <mailto:[EMAIL PROTECTED]>
List-Post: <mailto:[EMAIL PROTECTED]>
List-Subscribe: <http://lists.ximian.com/mailman/listinfo/mono-list>,<mailto:[EMAIL PROTECTED]>
List-Id: Mono Developer Discussion List <mono-list.lists.ximian.com>
List-Unsubscribe: <http://lists.ximian.com/mailman/listinfo/mono-list>,<mailto:[EMAIL PROTECTED]>
List-Archive: <http://lists.ximian.com/archives/public/mono-list/>
Return-Path: [EMAIL PROTECTED]
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 - [EMAIL PROTECTED] http://lists.ximian.com/mailman/listinfo/mono-list
_________________________________________________________________
Charla con tus amigos en l�nea mediante MSN Messenger: http://messenger.yupimsn.com/
_______________________________________________ Mono-list maillist - [EMAIL PROTECTED] http://lists.ximian.com/mailman/listinfo/mono-list
