Re: Virtual opBinary in interface

2024-12-20 Thread Steven Schveighoffer via Digitalmars-d-learn
On Thursday, 19 December 2024 at 18:49:28 UTC, sfp wrote: Subject lines says it all, I think... The choice to make binary operators implementable only via this `opBinary` template means it's unclear how to get virtual operators on an interface. I am very new to D, and my goal is to learn how

Re: D Tutorial

2024-12-20 Thread Mike Shah via Digitalmars-d-learn
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: https://youtube.com/playlist?list=PLvv0ScY6vfd9Fso-3cB4CGnSlW0E4b

Re: D Tutorial

2024-12-20 Thread zjh via Digitalmars-d-learn
On Friday, 20 December 2024 at 16:10:05 UTC, Duke wrote: Just installed D. [for chinese](https://blog.csdn.net/fqbqrr/category_9761761.html)

Re: Virtual opBinary in interface

2024-12-20 Thread Ali Çehreli via Digitalmars-d-learn
On 12/20/24 10:40 AM, Ali Çehreli wrote: > I always felt they could cause semantic issues. I remembered one such case. What should happen if both Cat and Dog defined the "+" operator? Should we expect 'cat + dog' behave the same as 'dog + cat'? Unfortunately, virtual functions are picked by t

Re: Virtual opBinary in interface

2024-12-20 Thread Ali Çehreli via Digitalmars-d-learn
On 12/19/24 10:49 AM, sfp wrote: > Subject lines says it all Although you clearly have a need for, virtual operators haven't been common in my experience. I always felt they could cause semantic issues. For example, the two subclasses of an interface may not have the binary relation that the

Re: D Tutorial

2024-12-20 Thread Bradley Chatha via Digitalmars-d-learn
Also there's this list of assorted features & idioms of D: https://p0nce.github.io/d-idioms/

Re: D Tutorial

2024-12-20 Thread Bradley Chatha via Digitalmars-d-learn
On Friday, 20 December 2024 at 16:10:05 UTC, Duke wrote: Need to work through an online tutorial for the language. Recommendations please. TIA .. I have some old blog posts that are focused around metaprogramming, questionable quality but still may be of use: * Compile-time text templater:

Re: D Tutorial

2024-12-20 Thread monkyyy via Digitalmars-d-learn
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

Re: D Tutorial

2024-12-20 Thread Lance Bachmeier via Digitalmars-d-learn
On Friday, 20 December 2024 at 16:35:39 UTC, bauss wrote: On Friday, 20 December 2024 at 16:27:48 UTC, Duke wrote: Ali's book http://ddili.org/ders/d.en/ I recommend using that book and playing around with the examples [in the online D editor](https://run.dlang.io/). Note also that the

Re: Recommendations on porting Python to D

2024-12-20 Thread bauss via Digitalmars-d-learn
On Friday, 20 December 2024 at 00:53:30 UTC, Chris Piker wrote: On Tuesday, 3 December 2024 at 12:36:22 UTC, johnwalker wrote: You might want to check out [Mojo](https://syntaxscenarios.com/mojo). It’s great for modernizing Python code and offers high performance with Python interoperability

Re: D Tutorial

2024-12-20 Thread bauss via Digitalmars-d-learn
On Friday, 20 December 2024 at 16:27:48 UTC, Duke wrote: Ali's book http://ddili.org/ders/d.en/

Re: D Tutorial

2024-12-20 Thread Duke via Digitalmars-d-learn
On Friday, 20 December 2024 at 16:17:21 UTC, Sergey 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 .. D tour, Ali’s book, chatGPT Then Google more to find more tutorials (l

Re: Recommendations on porting Python to D

2024-12-20 Thread Sergey via Digitalmars-d-learn
On Friday, 20 December 2024 at 00:53:30 UTC, Chris Piker wrote: On Tuesday, 3 December 2024 at 12:36:22 UTC, johnwalker wrote: You might want to check out [Mojo](https://syntaxscenarios.com/mojo). It’s great for modernizing Python code and offers high performance with Python interoperability

Re: D Tutorial

2024-12-20 Thread Sergey via Digitalmars-d-learn
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 .. D tour, Ali’s book, chatGPT Then Google more to find more tutorials (like this one https://exercism.org/tracks/d) Join Discord -

D Tutorial

2024-12-20 Thread Duke via Digitalmars-d-learn
Just installed D. Need to work through an online tutorial for the language. Recommendations please. TIA ..

Re: Cross Compilation Guide for New Users

2024-12-20 Thread bauss via Digitalmars-d-learn
On Friday, 20 December 2024 at 09:03:22 UTC, Dan wrote: Hi Dlang forums. ... This is great and I'm sure it'll help people around here.

Cross Compilation Guide for New Users

2024-12-20 Thread Dan via Digitalmars-d-learn
Hi Dlang forums. I ran into some problems when trying to cross compile. Hope this clarifies the set-up for anyone with the same problems. Additionally, perhaps these more explicit instructions / pitfalls could be put into the official [wiki page about cross compiling](https://wiki.dlang.org/