Re: what's the proper way to assign this?
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 reminder at least to myself: I found it by searching for Nullable in the search field. I didn't know Change Log could be searched separately. Cool! :) Ali a reminder to myself is check the change log first lol thanks for the link
Re: what's the proper way to assign this?
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 be buggy, it wouldn't be a new bug at least. it's supposed to call .get implicitly then right? what made that change, assuming it worked at time. Library? compile changes?
what's the proper way to assign this?
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 auto e = Entry("Bill", 30); auto entry = nullable(e); Entries data; data.entries ~= entry; struct Entry { string name; int id; } struct Entries { Entry[] entries; int lid; } ``` I could fix just with ```d data.entries ~= entry.get; ``` taking away all the nullables. My question is: should I use .get directly or there's a "proper way" to do it, maybe keeping the nullable? I'm asking so I don't create a misbehavior in the application.
what the closest thing we have to racket's check_expect()?
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
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 searching for 'editor' finds some packages: https://code.dlang.org/search?q=editor I think 'med' is by Walter Bright; he uses that editor daily. Ali It's a emacs' variant written in D?
Re: How to use dmd code coverage
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 files everytime I just wanted to play with some code. [...] is your IDE more of a REPL thing?
Re: Are there anything like leetcode.com but that supports D?
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 questions if they get stuck. My email is my username at gmail.com. I'm not a great D developer, but I've been doing development for 17 years and I started casually using D about 2 years later. Let me know if I can help! That's very kind of you! :) I'll let them know that
Re: Are there anything like leetcode.com but that supports D?
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://atcoder.jp/ * https://www.codechef.com/ Higher difficulty: * https://codeforces.com/ * https://codingcompetitions.withgoogle.com/kickstart All of them support D language. Sounds good, thank you too
Re: Error: Could not open 'libcmt.lib'
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 to know the actual fix for dub with dmd
Re: Are there anything like leetcode.com but that supports D?
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?
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/ https://www.hackerrank.com/ very good list, thanks
Are there anything like leetcode.com but that supports D?
I'd like that to some friends getting start with programming. Sadly that platform doesn't support D.