Bug 15468 – [Interfacing to Objective-C] is compromise

Status
RESOLVED
Resolution
INVALID
Severity
enhancement
Priority
P3
Component
dmd
Product
D
Version
D2
Platform
All
OS
All
Creation time
2015-12-22T14:16:00Z
Last change time
2015-12-22T14:35:33Z
Assigned to
nobody
Creator
lplus

Comments

Comment #0 by lplus — 2015-12-22T14:16:41Z
we don't have to support other language in language level D is good,but need heavyweight application,not more extern(*) extern(PHP)? extern(JS)?
Comment #1 by alphaglosined — 2015-12-22T14:35:33Z
There is quite a big difference between PHP, Javascript and Objective-C. PHP is implemented in C/C++ so we can already interface to it. Javascript engines are written in C/C++ commonly so again we can interface with it. Objective-C can only be wrapped via C. Not preferable. Objective-C is comparable with C++ not with either of these two. It is used with system libraries on OSX, PHP and Javascript cannot be used this way. It is impossible to create a window on OSX without Objective-C in some form.