On 5/10/21 11:20 PM, H. Nikolaus Schaller wrote:
Hi,
Am 10.05.2021 um 20:58 schrieb أسامة مخزوم <[email protected]>:
hi all
I am thinking of a C++11 wrapper for base, gui and other libraries, may be it
is easier to do than another PL (because of objective-c++ existence). however,
i want to hear from you: I would like to have opinions and whether if there was
a attemp to do this (with c++98, for example).
This also can give gnustep (another step). macosX developers always searches for c++
wrappers around cocoa and friends. before they enforced deeply to objc and swift, they
simply wishing the last wish "I hope that someone did it". so maybe a c++
wrapper can make gnutep famous for the mac development, rather.
On macOS C++ is not the primary language (except for kernel drivers). It is
ObjC and Swift.
IMHO, objc++ exists because there are some interesting C++ based libraries
(e.g. data processing, business logic, file format decoders) where it should be
possible to integrate them into objc based GUI apps. So in MVC architecture,
C++ would be mainly used for providing an existing data model.
this could be also a reason for writing such a wrapper. why doing things
in two language becomes the standard way? think of it as you were using
python and have to do GUI staff with Qt, does i have to try py-c++ or to
use a wrapper like pyqt?
GNUSTEP framework is a very easy-and-popular framework, i like it both
with developing, and in use. and I think it will make another little
advance if there was some easy/neat way to use from c++ (and many other
programming languages, like perl, and even javascript), i assume some
progress when a c++ programmer (thinks in terms of templates,
mutli-inheritance and smartpointers) has access to GNUSTEP. I know that
i didn't invent something new or make things impossible as possible. I
want to help people that like c++-syntax to consider gnustep as an
option, after all.
I wonder what a use case of the reverse wrapping would be.
a syntax-sugar, or convince wrapper is the main goal. maybe used as
additional gui-frontend for a c++ graphical or command line application
without too much diving into obj-c++.