Return-Path: Delivered-To: apmail-incubator-harmony-dev-archive@www.apache.org Received: (qmail 26763 invoked from network); 5 Jul 2005 00:58:00 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 5 Jul 2005 00:58:00 -0000 Received: (qmail 79881 invoked by uid 500); 5 Jul 2005 00:57:54 -0000 Delivered-To: apmail-incubator-harmony-dev-archive@incubator.apache.org Received: (qmail 79821 invoked by uid 500); 5 Jul 2005 00:57:54 -0000 Mailing-List: contact harmony-dev-help@incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: harmony-dev@incubator.apache.org Delivered-To: mailing list harmony-dev@incubator.apache.org Received: (qmail 79808 invoked by uid 99); 5 Jul 2005 00:57:53 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 04 Jul 2005 17:57:53 -0700 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received-SPF: neutral (asf.osuosl.org: local policy) Received: from [128.241.244.71] (HELO chi.mobile-health-diary.com) (128.241.244.71) by apache.org (qpsmtpd/0.29) with SMTP; Mon, 04 Jul 2005 17:57:54 -0700 Received: (qmail 19221 invoked from network); 5 Jul 2005 00:57:48 -0000 Received: from c-65-96-25-98.hsd1.ma.comcast.net (HELO ?10.0.1.20?) (geir@65.96.25.98) by b014.internal.mobile-health-diary.com with SMTP; 5 Jul 2005 00:57:48 -0000 Mime-Version: 1.0 (Apple Message framework v730) In-Reply-To: <42C936DA.10300@algroup.co.uk> References: <42C4DF5C.3000508@theory.org> <42C577B7.4050102@algroup.co.uk> <5e0b968a05070119222879c874@mail.gmail.com> <42C7D930.7050108@algroup.co.uk> <42C8ECA6.6070500@algroup.co.uk> <501D39A4-CCDB-4E1C-8378-B9BE49BAAFDF@apache.org> <42C936DA.10300@algroup.co.uk> Content-Type: text/plain; charset=US-ASCII; delsp=yes; format=flowed Message-Id: Content-Transfer-Encoding: 7bit From: "Geir Magnusson Jr." Subject: Re: Security Date: Mon, 4 Jul 2005 20:57:50 -0400 To: harmony-dev@incubator.apache.org X-Mailer: Apple Mail (2.730) X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N On Jul 4, 2005, at 9:17 AM, Ben Laurie wrote: > Geir Magnusson Jr. wrote: > >> On Jul 4, 2005, at 4:00 AM, Ben Laurie wrote: >> >>> Geir Magnusson Jr. wrote: >>> >>> >>>> On Jul 3, 2005, at 8:25 AM, Ben Laurie wrote: >>>> >>>> >>>>> Joel Neely wrote: >>>>> >>>>> >>>>> >>>>>> Typed, constrained object references vs. untyped, >>>>>> unconstrained pointers. >>>>>> >>>>>> >>>>>> >>>>> >>>>> C has typed pointers. >>>>> >>>>> >>>> How are they really typed? In Java, I'll get a runtime >>>> exception when I mis-cast... In C, IIRC, I get long hours of >>>> debugging... >>>> >>>> >>> >>> Cast? Why do you want to do that? >>> >> I'll take this as a straight question, although I can actually >> hear you saying it and I'm suspicious :) >> I actually never understood why I do it other than for >> readability, because I do think that the runtime can figure it out. >> There's a legitimate use when upcasting to a superclass. >> public class Bar { >> } >> public class Foo extends Bar { >> } >> Foo f = new Foo(); >> Bar b = (Bar) foo; >> > > I meant in C (which doesn't have superclasses). And someone pointed out that I was wrong too, because I was just waking up and didn't have coffee... Of course you don't need the cast in my case. I guess I was asking how pointers are typed in C... geir -- Geir Magnusson Jr +1-203-665-6437 geirm@apache.org