www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.announce - Blog post on the joys of hand-translating C++'s std::function to D

reply Atila Neves <atila.neves gmail.com> writes:
C++ is hard:

https://atilaoncode.blog/2019/03/07/the-joys-of-translating-cs-stdfunction-to-d/
Mar 07
next sibling parent reply Mike Parker <aldacron gmail.com> writes:
On Thursday, 7 March 2019 at 15:45:50 UTC, Atila Neves wrote:
 C++ is hard:

 https://atilaoncode.blog/2019/03/07/the-joys-of-translating-cs-stdfunction-to-d/
Reddit: https://www.reddit.com/r/programming/comments/ayf40t/the_joys_of_translating_cs_stdfunction_to_d/
Mar 07
next sibling parent Mike Parker <aldacron gmail.com> writes:
On Thursday, 7 March 2019 at 17:27:42 UTC, Mike Parker wrote:
 On Thursday, 7 March 2019 at 15:45:50 UTC, Atila Neves wrote:
 C++ is hard:

 https://atilaoncode.blog/2019/03/07/the-joys-of-translating-cs-stdfunction-to-d/
Reddit: https://www.reddit.com/r/programming/comments/ayf40t/the_joys_of_translating_cs_stdfunction_to_d/
It's also on Hacker News. Someone beat me to it.
Mar 07
prev sibling parent Walter Bright <newshound2 digitalmars.com> writes:
On 3/7/2019 9:27 AM, Mike Parker wrote:
 On Thursday, 7 March 2019 at 15:45:50 UTC, Atila Neves wrote:
 C++ is hard:

 https://atilaoncode.blog/2019/03/07/the-joys-of-translating-cs-stdfunction-to-d/
Reddit: https://www.reddit.com/r/programming/comments/ayf40t/the_joys_of_translating_ s_stdfunction_to_d/
Atila, please add an AMA post there!
Mar 07
prev sibling parent reply Jacob Carlborg <doob me.com> writes:
On 2019-03-07 16:45, Atila Neves wrote:
 C++ is hard:
 
 https://atilaoncode.blog/2019/03/07/the-joys-of-translating-
s-stdfunction-to-d/ 
Using ".mangleof" and "pragma(mangle)" on the same symbol looks like something that could easily break. -- /Jacob Carlborg
Mar 08
parent Atila Neves <atila.neves gmail.com> writes:
On Friday, 8 March 2019 at 10:27:54 UTC, Jacob Carlborg wrote:
 On 2019-03-07 16:45, Atila Neves wrote:
 C++ is hard:
 
 https://atilaoncode.blog/2019/03/07/the-joys-of-translating-cs-stdfunction-to-d/
Using ".mangleof" and "pragma(mangle)" on the same symbol looks like something that could easily break.
Maybe. Who knows how else to do it though.
Mar 08