[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
ObjC additions (Was: Re: PROPOSAL: Objective-C++)
From: |
Stefan Urbanek |
Subject: |
ObjC additions (Was: Re: PROPOSAL: Objective-C++) |
Date: |
Mon, 19 Nov 2001 22:52:57 +0100 |
Kim Shrier wrote:
>
> Ovidiu Predescu wrote:
> > I think
> > David's hate of NS*-ism is irrelevant here, as we are talking about
> > the language and the runtime system.
> >
>
> About a year ago, I was about 50% through adding support for protocols
> to the POC. David Stes raised such an objection to it that I stopped
> work. This is one of the NS*-ism's that David dislikes and it looks
> to me like it would have a direct influence on the language and the
> runtime system.
>
> > There are many neat things in POC that are quite
> > interesting, like blocks for example.
>
> I agree. I would like to see blocks in the GNU Objective C compiler.
>
Me too. And, what also about literal objects like arrays or numbers?
ConstantArray *array = @array(@"Item 1", @"Item 2");
or:
array = @(@"Item 1", @"Item 2");
And numbers:
ConstantNumber *value = @value(1);
or
ConstantNumber *intValue = @1;
ConstantNumber *doubleValue = @1.0;
And even dictionaries:
ConstantDictionary *dict = @{@"Key" = @"Value"};
Some default classes should be used like ConstantArray, ConstantNumber, and it
should be redefined by some gcc option, like now there is
-fconstant-string-class. Then, for example, ConstantNumber can be subclass of
NSValue. Imagine, then you would be able to write:
[dictionary setObject:@12.0 forValue:@"Size"];
Just an idea. I think, it can be userful.
What do you thing about it?
How is it difficult to have something like this?
Stefan
- Re: PROPOSAL: Objective-C++, (continued)
- Re: PROPOSAL: Objective-C++, Erik M. Buck, 2001/11/19
- Re: PROPOSAL: Objective-C++, David Relson, 2001/11/19
- Re: PROPOSAL: Objective-C++, Helge Hess, 2001/11/20
- NSInvocations (was Re: PROPOSAL: Objective-C++), Stephen Brandon, 2001/11/20
- Re: NSInvocations (was Re: PROPOSAL: Objective-C++), Helge Hess, 2001/11/20
- Re: PROPOSAL: Objective-C++, Stephen Peters, 2001/11/19
- Re: PROPOSAL: Objective-C++, Helge Hess, 2001/11/20
- Re: PROPOSAL: Objective-C++, Stefan Böhringer, 2001/11/20
- Re: PROPOSAL: Objective-C++, Ovidiu Predescu, 2001/11/19
- Re: PROPOSAL: Objective-C++, Björn Gohla, 2001/11/19
- ObjC additions (Was: Re: PROPOSAL: Objective-C++),
Stefan Urbanek <=
- Re: ObjC additions (Was: Re: PROPOSAL: Objective-C++), Ovidiu Predescu, 2001/11/19
- Re: ObjC additions (Was: Re: PROPOSAL: Objective-C++), Ziemowit Laski, 2001/11/19
- Re: ObjC additions (Was: Re: PROPOSAL: Objective-C++), Helge Hess, 2001/11/20
- Re: ObjC additions (Was: Re: PROPOSAL: Objective-C++), Björn Gohla, 2001/11/19
- Re: ObjC additions (Was: Re: PROPOSAL: Objective-C++), Bjoern Giesler, 2001/11/20
- Re: ObjC additions (Was: Re: PROPOSAL: Objective-C++), Björn Gohla, 2001/11/20
- Re: ObjC additions (Was: Re: PROPOSAL: Objective-C++), Philippe C.D. Robert, 2001/11/20
- Re: ObjC additions (Was: Re: PROPOSAL: Objective-C++), Philippe C.D. Robert, 2001/11/20
- Re: ObjC additions (Was: Re: PROPOSAL: Objective-C++), Markus Grabert, 2001/11/20
- Re: ObjC additions (Was: Re: PROPOSAL: Objective-C++), Markus Grabert, 2001/11/20