Mailing Lists: Apple Mailing Lists
Image of Mac OS face in stamp
Re: type coercion was: AGC was: Re: inner classes not possible, (in objc) right?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: type coercion was: AGC was: Re: inner classes not possible, (in objc) right?





On 4 Apr 2005, at 15:08, Helge Hess wrote:

Wouldn't it be nice to do a:
int a = [myArray objectAtIndex:0];
and get the object stored in the NSArray sent an -intValue? Yes, we could invent a new language for this, but I don't think its necessary in practice and would be quite a waste of time.

So you are proposing YAOLETAS (Yet Another Objective-C Language Extension That's Already in Smalltalk")?


As there are nor primitive types, you just do:

    a := myArray objectAtIndex:0.

Marcel

--
Marcel Weiher                Metaobject Software Technologies
email@hidden        www.metaobject.com
Metaprogramming for the Graphic Arts.   HOM, IDEAs, MetaAd etc.
        1d480c25f397c4786386135f8e8938e4


_______________________________________________ Do not post admin requests to the list. They will be ignored. Objc-language mailing list (email@hidden) Help/Unsubscribe/Update your Subscription: This email sent to email@hidden
References: 
 >Re: AGC was: Re: inner classes not possible,(in objc) right? (From: Dietmar Planitzer <email@hidden>)
 >Re: AGC was: Re: inner classes not possible,(in objc) right? (From: Marcel Weiher <email@hidden>)
 >Re: AGC was: Re: inner classes not possible,(in objc) right? (From: Dietmar Planitzer <email@hidden>)
 >Re: AGC was: Re: inner classes not possible,(in objc) right? (From: Marcel Weiher <email@hidden>)
 >Re: AGC was: Re: inner classes not possible,(in objc) right? (From: Dietmar Planitzer <email@hidden>)
 >Re: AGC was: Re: inner classes not possible,(in objc) right? (From: Prachi Gauriar <email@hidden>)
 >Re: AGC was: Re: inner classes not possible,(in objc) right? (From: Helge Hess <email@hidden>)
 >Re: AGC was: Re: inner classes not possible,(in objc) right? (From: Marcel Weiher <email@hidden>)
 >Re: type coercion was: AGC was: Re: inner classes not possible, (in objc) right? (From: Helge Hess <email@hidden>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2011 Apple Inc. All rights reserved.