I found the fix:
$ sudo brew update
$ sudo brew uninstall --force dmd
$ sudo su
$ cd /Library
$ rm -rfd D
$ exit
$ sudo brew install dmd
This not only takes one from an older dmd to a more current
version (in my case, from 2.068 to 2.069), but it also fixes a
bug where /Library/D doesn't get
On Monday, 14 December 2015 at 23:34:28 UTC, tcak wrote:
On Monday, 14 December 2015 at 20:46:41 UTC, Mike McKee wrote:
When I run this piece of code:
// FROM: https://dlang.org/spec/objc_interface.html
module main;
[...]
UDA s cannot be used for functions/methods AFAIK.
It doesn't give
On Monday, 14 December 2015 at 20:46:41 UTC, Mike McKee wrote:
When I run this piece of code:
// FROM: https://dlang.org/spec/objc_interface.html
module main;
[...]
UDA s cannot be used for functions/methods AFAIK.
d!");
NSLog(str);
str.release();
}
I get this error:
$ dmd -L-framework -LFoundation test.d
test.d(7): Error: undefined identifier 'selector'
test.d(13): Error: undefined identifier 'selector'
test.d(14): Error: undefined identifier 'selector'
It just doesn't like that @selector statement. What's the catch?