[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: of applications for gnustep...
From: |
Pascal Bourguignon |
Subject: |
Re: of applications for gnustep... |
Date: |
Tue, 17 Jun 2003 02:34:34 +0200 |
Eric Christopherson writes:
> I don't see why relatedness matters. C and assembly are only related insofar
> as C generally is translated into assembly. I don't know Pascal or Modula-3,
> but I can easily see that in some projects the developer might find it
> convenient to use more than one language, since different languages have
> different strengths. And if you can mix them in one project, I don't see any
> reason why they shouldn't be mixed in one translation unit, as long as it
> doesn't generate unresolvable problems with syntax, scope, etc.
A further thought: There are big difficulties to reconciliate object
language models.
You cannot take a Java class, make a subclass if it in Objective-C,
further make a subclass of the subclass in C++ and finally have a leaf
subclass of the C++ class in CLOS. Even taken two-by-two most object
oriented languages are sufficiently different so as to make it
impossible. If it's not the method dispatching it's the ivars or some
uncommon concept that makes it impossible.
That's why you need less to mix languages in the procedural paradigm:
all you need, is a common convention about procedure calling and the
common variables, and you can link Fortran libraries with C libraries
with Pascal and have calls in every directions.
But that's not possible in object oriented languages, hence the
solution to have a compiler that understand both Objective-C and C++
and that is capable of handling both kind of object systems in the
same language. If you wanted to mix Java, you would have to have a
ObjC+Java+C++ compiler (and good luck with the syntax and the
semantics!)
Objective-C is relatively very well behavied in this respect: since
everything is done in run-time, and its run-time has a C API, you can
send Objective-C messages from whatever language is able to call a C
function (most of them).
--
__Pascal_Bourguignon__ http://www.informatimago.com/
----------------------------------------------------------------------
Do not adjust your mind, there is a fault in reality.
- Re: of applications for gnustep..., (continued)
- Re: of applications for gnustep..., Chris B. Vetter, 2003/06/13
- Re: of applications for gnustep..., Philippe C . D . Robert, 2003/06/14
- Re: of applications for gnustep..., Philip Mötteli, 2003/06/14
- Re: of applications for gnustep..., Nicolas Roard, 2003/06/14
- Re: My GWorkspace feature request, Christopher Culver, 2003/06/15
- Re: My GWorkspace feature request, Nicolas Roard, 2003/06/15
- Re: of applications for gnustep..., Chris B. Vetter, 2003/06/16
- Re: of applications for gnustep..., Pete French, 2003/06/16
- Re: of applications for gnustep..., Lele Gaifax, 2003/06/16
- Re: of applications for gnustep..., Eric Christopherson, 2003/06/16
- Re: of applications for gnustep...,
Pascal Bourguignon <=
- Re: of applications for gnustep..., Pascal Bourguignon, 2003/06/16
- Re: My GWorkspace feature request, Alex Perez, 2003/06/19
- Message not available
- Re: My GWorkspace feature request, MJ Ray, 2003/06/21
- Re: GWorkspace.app Feature Request-- Tabbed Shelf, Enrico Sersale, 2003/06/22
- Re: GWorkspace.app Feature Request-- Tabbed Shelf, Charles Philip Chan, 2003/06/22
- Re: GWorkspace.app Feature Request-- Tabbed Shelf, Enrico Sersale, 2003/06/23
- Re: GWorkspace.app Feature Request-- Tabbed Shelf, Charles Philip Chan, 2003/06/23
- Re: GWorkspace.app Feature Request-- Tabbed Shelf, Charles Philip Chan, 2003/06/22
- Re: GWorkspace.app Feature Request-- Tabbed Shelf, Eric Christopherson, 2003/06/23
- Re: GWorkspace.app Feature Request-- Tabbed Shelf, Nicolas Roard, 2003/06/23