Re: core.sys.posix.setjmp unavailable for OS X?

2018-01-15 Thread H. S. Teoh via Digitalmars-d-learn
On Tue, Jan 16, 2018 at 08:29:57AM +0100, Jacob Carlborg via Digitalmars-d-learn wrote: > On 2018-01-16 08:29, Jacob Carlborg wrote: > > > They're used to implement Objective-C exceptions on macOS 32bit and > > iOS. > > Forgot the second part: > > ... so I assume that means it works. [...] So

Re: core.sys.posix.setjmp unavailable for OS X?

2018-01-15 Thread Jacob Carlborg via Digitalmars-d-learn
On 2018-01-16 08:29, Jacob Carlborg wrote: They're used to implement Objective-C exceptions on macOS 32bit and iOS. Forgot the second part: ... so I assume that means it works. -- /Jacob Carlborg

Re: core.sys.posix.setjmp unavailable for OS X?

2018-01-15 Thread Jacob Carlborg via Digitalmars-d-learn
On 2018-01-15 20:37, H. S. Teoh wrote: It's probably just a matter of adding the appropriate prototypes / declarations to druntime. Provided that they actually work as advertised, of course. They're used to implement Objective-C exceptions on macOS 32bit and iOS. -- /Jacob Carlborg

Re: core.sys.posix.setjmp unavailable for OS X?

2018-01-15 Thread H. S. Teoh via Digitalmars-d-learn
On Mon, Jan 15, 2018 at 07:06:42PM +, bpr via Digitalmars-d-learn wrote: > Is there a reason that it's unavailable on OS X when it works fine on > Linux? The functions exist on OS X, and it's easy enough to compile C > programs using setjmp there; but not D programs. I don't think I'm >

core.sys.posix.setjmp unavailable for OS X?

2018-01-15 Thread bpr via Digitalmars-d-learn
Is there a reason that it's unavailable on OS X when it works fine on Linux? The functions exist on OS X, and it's easy enough to compile C programs using setjmp there; but not D programs. I don't think I'm getting a betterC experience on the Mac. I'd also ask why the there are no D docs for