Talk by Herb Sutter: Bridge to NewThingia

aberba karabutaworld at gmail.com
Tue Jun 30 11:38:52 UTC 2020


On Monday, 29 June 2020 at 21:29:31 UTC, Ali Çehreli wrote:
> On 6/29/20 8:45 AM, Dagmar wrote:

> > If I shouldn't use
> > const, how should I emphasize the intention to pass a pointer
> only for
> > reading? How can I be sure that my class invariant is not
> compromised?
> > Also, there is the shared attribute, but it isn't designed nor
> > implemented well. Lots of questions, no solutions. D is
> intended to be a
> > C++ replacement, but it doesn't explain to C++ programmers
> how to change
> > their way of thinking.
>
> There is this dated document:

>  https://dlang.org/articles/cpptod.html

Ali, how you answered the questions is how I think one would want 
to find a document for C++ folks moving to D. The outdated doc I 
believed focused mostly on the syntactic differences which I 
agree we now need someone to help get it up to date with more 
coverage.

But a document with answers to common practical questions like 
just liked the above... const, shared, GC, etc doesn't seem to 
fit in the that doc. I believe you've pretty much said some 
things that we can work on to get things documented. I'm sure 
there's more similar questions.

So a D-idioms-like kind of doc/wiki might do. Of course, in 
addition to the cpptod.html one.

https://p0nce.github.io/d-idioms/


More information about the Digitalmars-d-announce mailing list