discuss-gnustep
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Objective-C++?


From: David Relson
Subject: Re: Objective-C++?
Date: Mon, 07 Apr 2003 20:48:32 -0400

For the most part I dislike C++, but it has one feature I'd really like to have in Objective-C - the ability to declare variables _anywhere_ it makes sense (not just at the start of a block). One particularly good place is loop variables, as in:

for (int i= 0; ...) {}

I also like defining variables when the time is right, for example:

...
count = function( ....);
int *array = malloc(count);
...


At 07:49 PM 4/7/03, Chris B. Vetter wrote:

On Tue, 8 Apr 2003 01:21:29 +0200
Lars Sonchocky-Helldorf <lars.sonchocky-helldorf@hamburg.de> wrote:
[...]
> Because lot of projects that are mainly Cocoa wrappers for C++ code
> are waiting to be ported to GNUstep. One of those projects is Camino
> (formerly Chimera) a Cocoa based wrapper for Gecko
> <http://www.mozilla.org/projects/camino/homepage.html>. Then GNUstep
> would finally have a decent web browser. If that is nothing...

I know there are a lot of things, GNUstep may benefit from, if ObjC++
was added to gcc. The kdebindings come to mind...

OTOH, using that as an argument is, dunno, silly, naive, takeyourpick
(no offense, I know you're not)
But take a look at the source of Camino. Even if gcc had ObjC++ support,
you won't be able to compile it on GNUstep -- unless you take painful
steps of removing (probably some essential) parts.
Rendezvous for example. Removing those parts not available under GNUstep
will most likely let the whole thing blow up in your face and if you
have to modify it anyway, you could add a wrapper while you're at it.
So, no, I don't see Camino as a good example why anyone would WANT to
have ObjC++ ...

Yes, I know we had that "discussion" before, so I'll stop ranting now.
(c:

--
Chris


_______________________________________________
Discuss-gnustep mailing list
Discuss-gnustep@gnu.org
http://mail.gnu.org/mailman/listinfo/discuss-gnustep





reply via email to

[Prev in Thread] Current Thread [Next in Thread]