Re: better c fibers

2021-09-28 Thread Kagamin via Digitalmars-d-learn
On Tuesday, 21 September 2021 at 09:37:30 UTC, Abby wrote: Hi there, I'm new in dlang I specially like betterC. I was hoping that d fibers would be implemented in without using classes, but there are not. On windows you can use the fiber api https://docs.microsoft.com/en-us/windows/win32/pro

Re: Modules ... "import" vs. "compilation" ... what is the real process here?

2021-09-28 Thread Steven Schveighoffer via Digitalmars-d-learn
On 9/28/21 1:59 AM, james.p.leblanc wrote: On Tuesday, 28 September 2021 at 05:26:29 UTC, Ali Çehreli wrote: On 9/27/21 10:38 AM, james.p.leblanc wrote: In addition to what Mike Parker said, templates do complicate matters here: Templates are instantiated (i.e. compiled for a specific set o

Re: Loading assimp

2021-09-28 Thread Eric_DD via Digitalmars-d-learn
I am trying to use a newer version of Assimp. I have found a assimp-vc140-mt.dll (v3.3.1) which I renamed to assimp.dll When running my executable it throws a derelict.util.exception.SharedLibLoadException: "Failed to load one or more shared libraries: assimp.dll - %1 is not a valid

Re: Loading assimp

2021-09-28 Thread russhy via Digitalmars-d-learn
On Tuesday, 28 September 2021 at 16:30:09 UTC, Eric_DD wrote: I am trying to use a newer version of Assimp. I have found a assimp-vc140-mt.dll (v3.3.1) which I renamed to assimp.dll When running my executable it throws a derelict.util.exception.SharedLibLoadException: "Failed to load one or

Re: Loading assimp

2021-09-28 Thread Eric_DD via Digitalmars-d-learn
On Tuesday, 28 September 2021 at 19:59:09 UTC, russhy wrote: On Tuesday, 28 September 2021 at 16:30:09 UTC, Eric_DD wrote: I am trying to use a newer version of Assimp. I have found a assimp-vc140-mt.dll (v3.3.1) which I renamed to assimp.dll When running my executable it throws a derelict.u

Understanding range.dropBackOne

2021-09-28 Thread Tim via Digitalmars-d-learn
I'm doing the following: ```D int[25] window = 0; // Later in a loop window = someInteger ~ window[].dropBackOne; ``` But I'm struggling to understand why the following doesn't work ```D window = someInteger ~ window.dropBackOne; ``` What does the `[]` do exactly? Is an array not a bidirection

Re: Understanding range.dropBackOne

2021-09-28 Thread Tim via Digitalmars-d-learn
On Tuesday, 28 September 2021 at 23:12:14 UTC, Adam Ruppe wrote: On Tuesday, 28 September 2021 at 22:56:17 UTC, Tim wrote: [...] Note that this array has a fixed size. [...] Here the window[] takes a variable-length slice of it. Turning it from int[25] into plain int[]. Then you can drop

Re: Understanding range.dropBackOne

2021-09-28 Thread Adam Ruppe via Digitalmars-d-learn
On Tuesday, 28 September 2021 at 22:56:17 UTC, Tim wrote: I'm doing the following: int[25] window = 0; Note that this array has a fixed size. window = someInteger ~ window[].dropBackOne; Here the window[] takes a variable-length slice of it. Turning it from int[25] into plain int[]. Then

Re: Loading assimp

2021-09-28 Thread Mike Parker via Digitalmars-d-learn
On Tuesday, 28 September 2021 at 16:30:09 UTC, Eric_DD wrote: I am trying to use a newer version of Assimp. I have found a assimp-vc140-mt.dll (v3.3.1) which I renamed to assimp.dll When running my executable it throws a derelict.util.exception.SharedLibLoadException: "Failed to load one or

Using D "rocket" logo in outside presentation

2021-09-28 Thread Chris Piker via Digitalmars-d-learn
Hi D I'm to give a presentation to a combined NASA/ESA group in a few hours and would like to include a copy of the D "rocket" logo when mentioning new server side tools that I've written in D. Is such use of this particular [D logo](https://i0.wp.com/dlang.org/blog/wp-content/uploads/2021/0

Re: Using D "rocket" logo in outside presentation

2021-09-28 Thread Mike Parker via Digitalmars-d-learn
On Wednesday, 29 September 2021 at 04:24:13 UTC, Chris Piker wrote: Hi D I'm to give a presentation to a combined NASA/ESA group in a few hours and would like to include a copy of the D "rocket" logo when mentioning new server side tools that I've written in D. Is such use of this particular

Re: Using D "rocket" logo in outside presentation

2021-09-28 Thread WebFreak001 via Digitalmars-d-learn
On Wednesday, 29 September 2021 at 04:24:13 UTC, Chris Piker wrote: Hi D I'm to give a presentation to a combined NASA/ESA group in a few hours and would like to include a copy of the D "rocket" logo when mentioning new server side tools that I've written in D. Is such use of this particular