Re: Encapsulate return value in scoped

2015-06-18 Thread Ali Çehreli via Digitalmars-d-learn
On 06/18/2015 05:25 PM, Yuxuan Shui wrote: > What problem can moving a scoped cause when there's > no reference to its inner class? I am curious as well. Could it be related to the object's 'monitor'? Perhaps some other code may have a reference to monitor? And that reference does not constitu

Re: Encapsulate return value in scoped

2015-06-18 Thread Yuxuan Shui via Digitalmars-d-learn
On Friday, 19 June 2015 at 00:00:50 UTC, Ali Çehreli wrote: On 06/18/2015 04:53 PM, Yuxuan Shui wrote: > On Thursday, 11 June 2015 at 21:38:59 UTC, Ali Çehreli wrote: >> About returning scoped!C, I think it works: > I just find out that the document of scoped says that "It's Thanks for fixing

Re: Encapsulate return value in scoped

2015-06-18 Thread Ali Çehreli via Digitalmars-d-learn
On 06/18/2015 04:53 PM, Yuxuan Shui wrote: > On Thursday, 11 June 2015 at 21:38:59 UTC, Ali Çehreli wrote: >> About returning scoped!C, I think it works: > I just find out that the document of scoped says that "It's Thanks for fixing the typo there. (The documentations has lower case: "it's".

Re: Encapsulate return value in scoped

2015-06-18 Thread Yuxuan Shui via Digitalmars-d-learn
On Thursday, 11 June 2015 at 21:38:59 UTC, Ali Çehreli wrote: On 06/11/2015 12:51 PM, Yuxuan Shui wrote: > On Thursday, 11 June 2015 at 19:23:49 UTC, Ali Çehreli wrote: >> [...] > > Can you explain more about why the destructor is not called when > returning a struct? Are you asking in general

Re: best way to interface D code to Excel

2015-06-18 Thread Laeeth Isharc via Digitalmars-d-learn
Thanks to Kagamin, John, and Arjan. Decided I need to upgrade my machine to run a more usable Windows VM. Looks like Adam Ruppe has a working COM example in his github repo, so I will start with that. And I have ordered the book and will read the COM in C stuff too. Appreciate the help.

Re: CPU cores & threads & fibers

2015-06-18 Thread Robert M. Münch via Digitalmars-d-learn
On 2015-06-16 18:36:09 +, Rob T said: FYI: https://issues.dlang.org/show_bug.cgi?id=11686 https://issues.dlang.org/show_bug.cgi?id=11687 Thanks. We are currently experimenting to see how want to use the threads and what code to refactor. If we are going to bite the bullet I keep this in

Re: best way to interface D code to Excel

2015-06-18 Thread Arjan via Digitalmars-d-learn
On Wednesday, 17 June 2015 at 18:35:36 UTC, Laeeth Isharc wrote: Hi. Any thoughts on the best way to write D functions that I can call from Excel? I am completely unfamiliar with Windows programming and COM (last time I wrote this kind of thing was in the mid-90s I think using xloper and C).

Re: best way to interface D code to Excel

2015-06-18 Thread John Colvin via Digitalmars-d-learn
On Wednesday, 17 June 2015 at 18:35:36 UTC, Laeeth Isharc wrote: Hi. Any thoughts on the best way to write D functions that I can call from Excel? I am completely unfamiliar with Windows programming and COM (last time I wrote this kind of thing was in the mid-90s I think using xloper and C).

Re: best way to interface D code to Excel

2015-06-18 Thread Kagamin via Digitalmars-d-learn
http://www.amazon.com/Inside-Com-Microsoft-Programming-Series/dp/1572313498