Re: I need some help for my DCV update

2021-11-26 Thread Ferhat Kurtulmuş via Digitalmars-d-learn
On Friday, 26 November 2021 at 09:16:56 UTC, Ferhat Kurtulmuş wrote: I am working on the DCV to make it compilable with the recent versions of LDC, mir libraries, and stuff. I have not yet simply forked it to work on it. I am including modules one by one for my convenience instead. Hope, I am c

I need some help for my DCV update

2021-11-26 Thread Ferhat Kurtulmuş via Digitalmars-d-learn
I am working on the DCV to make it compilable with the recent versions of LDC, mir libraries, and stuff. I have not yet simply forked it to work on it. I am including modules one by one for my convenience instead. Hope, I am close to the end. Here is my temporary repo: https://github.com/afer

Re: I need some help for my DCV update

2021-11-26 Thread drug via Digitalmars-d-learn
On 26.11.2021 12:16, Ferhat Kurtulmuş wrote: I am working on the DCV to make it compilable with the recent versions of LDC, mir libraries, and stuff. I have not yet simply forked it to work on it. I am including modules one by one for my convenience instead. Hope, I am close to the end. Here is

Re: I need some help for my DCV update

2021-11-26 Thread Ferhat Kurtulmuş via Digitalmars-d-learn
On Friday, 26 November 2021 at 09:31:42 UTC, drug wrote: On 26.11.2021 12:16, Ferhat Kurtulmuş wrote: InputTensor = Slice!(ubyte*, 2LU, mir_slice_kind.contiguous) and KernelTensor = Slice!(float*, 2LU, mir_slice_kind.contiguous). The key argument of slices is a pointee type - InputTensor poi

bool empty() const for ranges

2021-11-26 Thread Salih Dincer via Digitalmars-d-learn
Hi All; I have two questions that make each other redundant. Please answer one of them. I'm implementing ```bool empty() const``` for ranges as below: ```d bool empty() // const { bool result; if(!head) { result = true; fastRewind(); } return result; // he

Re: bool empty() const for ranges

2021-11-26 Thread Stanislav Blinov via Digitalmars-d-learn
On Friday, 26 November 2021 at 10:44:10 UTC, Salih Dincer wrote: * Is the const essential for ranges? * Is it possible to rewind the pointer (```Node * head;```) when my head is empty by the const? `empty` is not required to be `const`, but it is required to yield the same result if called m

Re: bool empty() const for ranges

2021-11-26 Thread Steven Schveighoffer via Digitalmars-d-learn
On 11/26/21 5:44 AM, Salih Dincer wrote: Hi All; I have two questions that make each other redundant. Please answer one of them. I'm implementing ```bool empty() const``` for ranges as below: ```d   bool empty() // const   {     bool result;     if(!head)     {   result = true;