Trying to understand map being a template

2024-01-05 Thread Noé Falzon via Digitalmars-d-learn
On the subject of `map` taking the function as template parameter, I was surprised to see it could still be used with functions determined at runtime, even closures, etc. I am trying to understand the mechanism behind it. The commented out line causes the error that `choice(funcs)` cannot be

Re: Trying to understand map being a template

2024-01-05 Thread H. S. Teoh via Digitalmars-d-learn
On Fri, Jan 05, 2024 at 08:41:53PM +, Noé Falzon via Digitalmars-d-learn wrote: > On the subject of `map` taking the function as template parameter, I > was surprised to see it could still be used with functions determined > at runtime, even closures, etc. I am trying to understand the > mecha

Re: I Did It! Calling D Library from Objective C in XCode on OSX

2024-01-05 Thread pizza_dox_9999 via Digitalmars-d-learn
On Friday, 5 January 2024 at 05:22:54 UTC, Mike Shah wrote: On Thursday, 4 January 2024 at 14:17:01 UTC, pizza_dox_ wrote: On Monday, 14 December 2015 at 10:09:29 UTC, Mike McKee wrote: I finally managed to get it working, using some help from this forum and stackoverflow.com, and a little