Re: D Tutorial

2024-12-23 Thread Mike Shah via Digitalmars-d-learn
On Monday, 23 December 2024 at 19:49:41 UTC, Duke wrote: On Saturday, 21 December 2024 at 01:51:27 UTC, Mike Shah wrote: On Friday, 20 December 2024 at 16:10:05 UTC, Duke wrote: Just installed D. Need to work through an online tutorial for the language. Recommendations please. TIA .. I have

Re: D Tutorial

2024-12-23 Thread Mike Shah via Digitalmars-d-learn
On Monday, 23 December 2024 at 12:22:02 UTC, Renato Athaydes wrote: On Saturday, 21 December 2024 at 01:51:27 UTC, Mike Shah wrote: On Friday, 20 December 2024 at 16:10:05 UTC, Duke wrote: Just installed D. Need to work through an online tutorial for the language. Recommendations please. TIA .

Re: How to iterate string enum values?

2024-12-23 Thread Jim Balter via Digitalmars-d-learn
On Monday, 23 December 2024 at 20:32:58 UTC, Anton Pastukhov wrote: On Monday, 23 December 2024 at 20:26:47 UTC, bauss wrote: Simply cast el to a string instead of using std.conv.to Thanks much, it worked! Though I'm confused why. Could you please elaborate? I had the exact same issue yest

Re: How to iterate string enum values?

2024-12-23 Thread Anton Pastukhov via Digitalmars-d-learn
On Monday, 23 December 2024 at 20:26:47 UTC, bauss wrote: Simply cast el to a string instead of using std.conv.to Thanks much, it worked! Though I'm confused why. Could you please elaborate?

Re: How to iterate string enum values?

2024-12-23 Thread bauss via Digitalmars-d-learn
On Monday, 23 December 2024 at 20:20:02 UTC, Anton Pastukhov wrote: I'm stuck on a simple problem. There is this string enum of MIME types: ```d enum BodyType: string { PlainText = "text/plain", JSON = "apllication/json", FormUrlencoded = "application/x-www-form-urlencoded", Mult

How to iterate string enum values?

2024-12-23 Thread Anton Pastukhov via Digitalmars-d-learn
I'm stuck on a simple problem. There is this string enum of MIME types: ```d enum BodyType: string { PlainText = "text/plain", JSON = "apllication/json", FormUrlencoded = "application/x-www-form-urlencoded", Multipart = "multipart/form-data", Other = "Other", None = "None"

Re: D Tutorial

2024-12-23 Thread Duke via Digitalmars-d-learn
On Saturday, 21 December 2024 at 01:51:27 UTC, Mike Shah wrote: On Friday, 20 December 2024 at 16:10:05 UTC, Duke wrote: Just installed D. Need to work through an online tutorial for the language. Recommendations please. TIA .. I have many video tutorials here that may help various topics:

Re: D Tutorial

2024-12-23 Thread Duke via Digitalmars-d-learn
On Friday, 20 December 2024 at 17:41:36 UTC, monkyyy wrote: On Friday, 20 December 2024 at 16:10:05 UTC, Duke wrote: Just installed D. Need to work through an online tutorial for the language. Recommendations please. TIA .. https://github.com/crazymonkyyy/dingbats Thx

Re: D Tutorial

2024-12-23 Thread Renato Athaydes via Digitalmars-d-learn
On Saturday, 21 December 2024 at 01:51:27 UTC, Mike Shah wrote: On Friday, 20 December 2024 at 16:10:05 UTC, Duke wrote: Just installed D. Need to work through an online tutorial for the language. Recommendations please. TIA .. I have many video tutorials here that may help various topics:

Re: Kotlin Meta and CT programming vs D

2024-12-23 Thread Renato Athaydes via Digitalmars-d-learn
I forgot to mention, Kotlin also has some features that rely on compiler plugins, like serialization: https://kotlinlang.org/docs/serialization.html#formats, usually done via Gradle plugins. This would normally be done via reflection, as Google's JSON library for Java, Gson, does. But by havi

Re: Kotlin Meta and CT programming vs D

2024-12-23 Thread Renato Athaydes via Digitalmars-d-learn
On Thursday, 19 December 2024 at 06:04:33 UTC, Jo Blow wrote: But there have been several cases when I have asked others about trying to do certain "compile time" things in Kotlin that say it can't be done. It seems that there is actually no compile time programming in Kotlin(and I guess Java t