Re: what's the proper way to assign this?

2022-01-04 Thread Dr Machine Code via Digitalmars-d-learn
On Tuesday, 4 January 2022 at 19:06:52 UTC, Ali Çehreli wrote: On 1/4/22 10:53 AM, Dr Machine Code wrote: what made that change, assuming it worked at time. Library? compile changes? Here is the changelog item: https://dlang.org/changelog/2.088.0.html#remove-nullable-alias-get-this A rem

Re: what's the proper way to assign this?

2022-01-04 Thread Dr Machine Code via Digitalmars-d-learn
On Tuesday, 4 January 2022 at 17:58:05 UTC, Adam D Ruppe wrote: On Tuesday, 4 January 2022 at 17:23:11 UTC, Dr Machine Code wrote: I could fix just with ```d data.entries ~= entry.get; ``` This is what the original code was doing - it used to implicitly do this. So while this might

what's the proper way to assign this?

2022-01-04 Thread Dr Machine Code via Digitalmars-d-learn
I've tried to build 2 years old D project and I was getting the error: > Error: cannot append type `Nullable!(SelectorEntry)` to type `SelectorEntry[]` I went to use Nullable, 'cause I've never used it before. Boiling down the error was something like (minimal code reproduction): ```d

what the closest thing we have to racket's check_expect()?

2021-12-22 Thread Dr Machine Code via Digitalmars-d-learn
it differ from assert because it contains the expression, file and line information. See this https://stackoverflow.com/questions/14420857/check-expect-example-in-racket what's the closest thing we have in D? can we make it without compiler builtin?

Re: Simple text editor program

2021-11-17 Thread Dr Machine Code via Digitalmars-d-learn
On Wednesday, 17 November 2021 at 03:21:34 UTC, Ali Çehreli wrote: On 11/16/21 6:10 PM, pascal111 wrote: Is there a so simple text editor written in D as an example for learners. I hope the editor whose code is written in D is available with someone. I am not familiar with any of them but sea

Re: How to use dmd code coverage

2021-11-12 Thread Dr Machine Code via Digitalmars-d-learn
On Thursday, 11 November 2021 at 23:51:42 UTC, foxit wrote: On Thursday, 11 November 2021 at 22:35:21 UTC, forkit wrote: [...] Actually, the reason I got soo confused is clear to me now. I have my own GUI IDE, which I wrote myself (winforms/C#) cause I got so fed up with creating/saving

Re: Are there anything like leetcode.com but that supports D?

2021-11-02 Thread Dr Machine Code via Digitalmars-d-learn
On Friday, 29 October 2021 at 17:29:57 UTC, harakim wrote: On Sunday, 24 October 2021 at 05:46:48 UTC, Dr Machine Code wrote: I'd like that to some friends getting start with programming. Sadly that platform doesn't support D. I wouldn't mind helping out by reviewing code or answering questio

Re: Are there anything like leetcode.com but that supports D?

2021-10-27 Thread Dr Machine Code via Digitalmars-d-learn
On Thursday, 28 October 2021 at 01:29:41 UTC, Siarhei Siamashka wrote: On Sunday, 24 October 2021 at 05:46:48 UTC, Dr Machine Code wrote: I'd like that to some friends getting start with programming. There are also websites, which host programming competitions. Beginners friendly: * https://

Re: Error: Could not open 'libcmt.lib'

2021-10-25 Thread Dr Machine Code via Digitalmars-d-learn
On Monday, 25 October 2021 at 15:43:06 UTC, Willem wrote: I was able to resolve above issues by following the install guide by DrIggy @ https://www.youtube.com/watch?v=fuJBj_tgsR8 Thanks for posting it. Willem A friend of mine was with this issue. We just end up using ldc2 but would be nice

Re: Are there anything like leetcode.com but that supports D?

2021-10-24 Thread Dr Machine Code via Digitalmars-d-learn
On Sunday, 24 October 2021 at 19:14:59 UTC, Imperatorn wrote: On Sunday, 24 October 2021 at 05:46:48 UTC, Dr Machine Code wrote: I'd like that to some friends getting start with programming. Sadly that platform doesn't support D. https://exercism.org/tracks/d also good one, thanks

Re: Are there anything like leetcode.com but that supports D?

2021-10-24 Thread Dr Machine Code via Digitalmars-d-learn
On Sunday, 24 October 2021 at 12:49:03 UTC, jfondren wrote: On Sunday, 24 October 2021 at 05:46:48 UTC, Dr Machine Code wrote: I'd like that to some friends getting start with programming. Sadly that platform doesn't support D. Here are a few: https://www.codingame.com/ https://www.spoj.com/

Are there anything like leetcode.com but that supports D?

2021-10-23 Thread Dr Machine Code via Digitalmars-d-learn
I'd like that to some friends getting start with programming. Sadly that platform doesn't support D.