mail-archives/mono-list/2003-October/016485.html

143 строки
7.9 KiB
HTML
Исходник Постоянная ссылка Ответственный История

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<HTML>
<HEAD>
<TITLE> [Mono-list] implicit, explicit, and why does C# have these?
</TITLE>
<LINK REL="Index" HREF="index.html" >
<LINK REL="made" HREF="mailto:lnc19%40hotmail.com">
<META NAME="robots" CONTENT="index,nofollow">
<LINK REL="Previous" HREF="016491.html">
<LINK REL="Next" HREF="016488.html">
</HEAD>
<BODY BGCOLOR="#ffffff">
<H1>[Mono-list] implicit, explicit, and why does C# have these?
</H1>
<B>Luciano Callero
</B>
<A HREF="mailto:lnc19%40hotmail.com"
TITLE="[Mono-list] implicit, explicit, and why does C# have these?">lnc19@hotmail.com
</A><BR>
<I>Fri, 17 Oct 2003 11:05:02 -0300</I>
<P><UL>
<LI> Previous message: <A HREF="016491.html">[Mono-devel-list] RE: [Mono-list] Npgsql sources finally
updated!!
</A></li>
<LI> Next message: <A HREF="016488.html">[Mono-list] XSP and page encoding (bug?)
</A></li>
<LI> <B>Messages sorted by:</B>
<a href="date.html#16485">[ date ]</a>
<a href="thread.html#16485">[ thread ]</a>
<a href="subject.html#16485">[ subject ]</a>
<a href="author.html#16485">[ author ]</a>
</LI>
</UL>
<HR>
<!--beginarticle-->
<PRE>Yes, it is a good think (for me) beacause you can not mistake and lost data.
&gt;<i>From: &quot;Arild Fines&quot; &lt;<A HREF="mailto:arild.fines@broadpark.no">arild.fines@broadpark.no</A>&gt;
</I>&gt;<i>To: &quot;David La Motta&quot; &lt;<A HREF="mailto:dlamotta@email.com">dlamotta@email.com</A>&gt;,&quot;Jonathan Pryor&quot;
</I>&gt;<i>&lt;<A HREF="mailto:jonpryor@vt.edu">jonpryor@vt.edu</A>&gt;
</I>&gt;<i>CC: &quot;Mono-List&quot; &lt;<A HREF="mailto:Mono-list@lists.ximian.com">Mono-list@lists.ximian.com</A>&gt;
</I>&gt;<i>Subject: RE: [Mono-list] implicit, explicit, and why does C# have these?
</I>&gt;<i>Date: Fri, 17 Oct 2003 15:42:07 +0200
</I>&gt;<i>MIME-Version: 1.0
</I>&gt;<i>Received: from mc2-f18.hotmail.com ([65.54.237.25]) by mc2-s5.hotmail.com
</I>&gt;<i>with Microsoft SMTPSVC(5.0.2195.5600); Fri, 17 Oct 2003 06:49:55 -0700
</I>&gt;<i>Received: from listsmx.ximian.com ([141.154.95.15]) by mc2-f18.hotmail.com
</I>&gt;<i>with Microsoft SMTPSVC(5.0.2195.5600); Fri, 17 Oct 2003 06:46:23 -0700
</I>&gt;<i>Received: from headcheese.ximian.com (localhost [127.0.0.1])by
</I>&gt;<i>listsmx.ximian.com (Postfix) with ESMTPid 67EB3124933; Fri, 17 Oct 2003
</I>&gt;<i>09:43:06 -0400 (EDT)
</I>&gt;<i>Received: by listsmx.ximian.com (Postfix, from userid 38)id 97CE0124476;
</I>&gt;<i>Fri, 17 Oct 2003 09:42:37 -0400 (EDT)
</I>&gt;<i>Received: from mail.broadpark.no (mail.broadpark.no [217.13.4.2])by
</I>&gt;<i>listsmx.ximian.com (Postfix) with ESMTP id B99121241E0for
</I>&gt;<i>&lt;<A HREF="mailto:Mono-list@lists.ximian.com">Mono-list@lists.ximian.com</A>&gt;; Fri, 17 Oct 2003 09:42:05 -0400 (EDT)
</I>&gt;<i>Received: from meadow (21.80-203-35.nextgentel.com [80.203.35.21])by
</I>&gt;<i>mail.broadpark.no (Postfix) with SMTPid D1BBA7944E; Fri, 17 Oct 2003
</I>&gt;<i>15:41:47 +0200 (MEST)
</I>&gt;<i>X-Message-Info: g+YnDTwJTP6uKIyRgq5SoaeVfeAc4LOkWn66QNoJgTY=
</I>&gt;<i>Message-ID: &lt;<A HREF="mailto:AJEELJINGEGOMNJPJFKKCEIEDCAA.arild.fines@broadpark.no">AJEELJINGEGOMNJPJFKKCEIEDCAA.arild.fines@broadpark.no</A>&gt;
</I>&gt;<i>X-Priority: 3 (Normal)
</I>&gt;<i>X-MSMail-Priority: Normal
</I>&gt;<i>X-Mailer: Microsoft Outlook IMO, Build 9.0.2416 (9.0.2911.0)
</I>&gt;<i>In-Reply-To: &lt;<A HREF="mailto:3F8FED42.4020003@email.com">3F8FED42.4020003@email.com</A>&gt;
</I>&gt;<i>X-MimeOLE: Produced By Microsoft MimeOLE V6.00.3790.0
</I>&gt;<i>Importance: Normal
</I>&gt;<i>X-Spam-Status: No, hits=-25.2
</I>&gt;<i>required=5.0tests=EMAIL_ATTRIBUTION,IN_REP_TO,MSGID_GOOD_EXCHANGE,
</I>&gt;<i>QUOTED_EMAIL_TEXT,REPLY_WITH_QUOTESversion=2.53
</I>&gt;<i>X-Spam-Level: X-Spam-Checker-Version: SpamAssassin 2.53
</I>&gt;<i>(1.174.2.15-2003-03-30-exp)
</I>&gt;<i>Sender: <A HREF="mailto:mono-list-admin@lists.ximian.com">mono-list-admin@lists.ximian.com</A>
</I>&gt;<i>Errors-To: <A HREF="mailto:mono-list-admin@lists.ximian.com">mono-list-admin@lists.ximian.com</A>
</I>&gt;<i>X-BeenThere: <A HREF="mailto:mono-list@lists.ximian.com">mono-list@lists.ximian.com</A>
</I>&gt;<i>X-Mailman-Version: 2.0.13
</I>&gt;<i>Precedence: bulk
</I>&gt;<i>List-Help: &lt;mailto:<A HREF="mailto:mono-list-request@lists.ximian.com">mono-list-request@lists.ximian.com</A>?subject=help&gt;
</I>&gt;<i>List-Post: &lt;mailto:<A HREF="mailto:mono-list@lists.ximian.com">mono-list@lists.ximian.com</A>&gt;
</I>&gt;<i>List-Subscribe:
</I>&gt;<i>&lt;<A HREF="http://lists.ximian.com/mailman/listinfo/mono-list">http://lists.ximian.com/mailman/listinfo/mono-list</A>&gt;,&lt;mailto:<A HREF="mailto:mono-list-request@lists.ximian.com">mono-list-request@lists.ximian.com</A>?subject=subscribe&gt;
</I>&gt;<i>List-Id: Mono Developer Discussion List &lt;mono-list.lists.ximian.com&gt;
</I>&gt;<i>List-Unsubscribe:
</I>&gt;<i>&lt;<A HREF="http://lists.ximian.com/mailman/listinfo/mono-list">http://lists.ximian.com/mailman/listinfo/mono-list</A>&gt;,&lt;mailto:<A HREF="mailto:mono-list-request@lists.ximian.com">mono-list-request@lists.ximian.com</A>?subject=unsubscribe&gt;
</I>&gt;<i>List-Archive: &lt;<A HREF="http://lists.ximian.com/archives/public/mono-list/">http://lists.ximian.com/archives/public/mono-list/</A>&gt;
</I>&gt;<i>Return-Path: <A HREF="mailto:mono-list-admin@lists.ximian.com">mono-list-admin@lists.ximian.com</A>
</I>&gt;<i>X-OriginalArrivalTime: 17 Oct 2003 13:46:26.0226 (UTC)
</I>&gt;<i>FILETIME=[0F3EA120:01C394B5]
</I>&gt;<i>
</I>&gt;<i>David La Motta wrote:
</I>&gt;<i> &gt; Thanks for the explanation. I can see how the implicit operator can
</I>&gt;<i> &gt; be useful in the example you describe; still, I think it wasn't
</I>&gt;<i> &gt; necessary for C# to expose them to us. I.e., let us deal with the
</I>&gt;<i> &gt; explicit casts and spare the confusion they may cause. In other
</I>&gt;<i> &gt; words, an implicit cast from a Pear object to a Truck object can seem
</I>&gt;<i> &gt; quite odd, assuming their inheritance tree has nothing in common.
</I>&gt;<i>
</I>&gt;<i>Sure, but would you really want to be required to use an explicit cast when
</I>&gt;<i>converting an int to a long?
</I>&gt;<i>
</I>&gt;<i>
</I>&gt;<i>--
</I>&gt;<i>Arild
</I>&gt;<i>
</I>&gt;<i>AnkhSVN: <A HREF="http://ankhsvn.tigris.org">http://ankhsvn.tigris.org</A>
</I>&gt;<i>Blog: <A HREF="http://ankhsvn.com/blog">http://ankhsvn.com/blog</A>
</I>&gt;<i>RSS: <A HREF="http://ankhsvn.com/blog/Rss.aspx">http://ankhsvn.com/blog/Rss.aspx</A>
</I>&gt;<i>
</I>&gt;<i>King Crimson lives in different bodies at different times and the
</I>&gt;<i>particular form which the group takes changes. When music appears,
</I>&gt;<i>which only King Crimson can play then, sooner or later, King Crimson
</I>&gt;<i>appears to play the music
</I>&gt;<i>
</I>&gt;<i>_______________________________________________
</I>&gt;<i>Mono-list maillist - <A HREF="mailto:Mono-list@lists.ximian.com">Mono-list@lists.ximian.com</A>
</I>&gt;<i><A HREF="http://lists.ximian.com/mailman/listinfo/mono-list">http://lists.ximian.com/mailman/listinfo/mono-list</A>
</I>
_________________________________________________________________
Charla con tus amigos en l<>nea mediante MSN Messenger:
<A HREF="http://messenger.yupimsn.com/">http://messenger.yupimsn.com/</A>
</PRE>
<!--endarticle-->
<HR>
<P><UL>
<!--threads-->
<LI> Previous message: <A HREF="016491.html">[Mono-devel-list] RE: [Mono-list] Npgsql sources finally
updated!!
</A></li>
<LI> Next message: <A HREF="016488.html">[Mono-list] XSP and page encoding (bug?)
</A></li>
<LI> <B>Messages sorted by:</B>
<a href="date.html#16485">[ date ]</a>
<a href="thread.html#16485">[ thread ]</a>
<a href="subject.html#16485">[ subject ]</a>
<a href="author.html#16485">[ author ]</a>
</LI>
</UL>
</body></html>