D/Objective-C 64bit
Martin Nowak via Digitalmars-d-announce
digitalmars-d-announce at puremagic.com
Thu Oct 30 02:16:34 PDT 2014
On Tuesday, 11 March 2014 at 18:23:08 UTC, Jacob Carlborg wrote:
> A DIP is available here [1] and the latest implementation is
> available here [2].
>
> [1] http://wiki.dlang.org/DIP43
Instead of adding the selector syntaxsyntax you could reuse
pragma mangle.
extern (Objective-C)
class NSComboBox : NSTextField
{
private void* _dataSource;
pragma(mangle, objcMangle!(NSComboBox,
"insertItemWithObjectValue", "atIndex")
void insertItem(ObjcObject object, NSInteger value);
}
Alternatively a compiler recognized UDA would work too.
@objcSel!("insertItemWithObjectValue", "atIndex")
void insertItem(ObjcObject object, NSInteger value);
Changing the lexer and parser would affect all D language tools
(editors, formatters, linters, other compilers). So now that we
do have UDAs I don't see a justification for changing the syntax
and grammar of D.
More information about the Digitalmars-d-announce
mailing list