Why can't we derive struct's? (Hansel & Gretel)
Walter Bright
newshound2 at digitalmars.com
Wed Dec 26 22:33:18 UTC 2018
On 12/22/2018 2:47 AM, Atila Neves wrote:
>> D isn't any more suitable for in-browser code than C++ is. A native language
>> with raw pointers would not be a good choice for an embeddable scripting
>> language.
>
> And yet, people have been compiling C++ and running it in the browser for a while.
I didn't know that. But one can support "raw" pointers in a sandbox via
emulation. But then one loses the benefits of raw pointers. It doesn't change my
opinion that C++ is unsuitable for in-browser work.
As I recall, there is "managed C++" which was Microsoft getting C++ to work with
CLI, but they did it by extensively modifying the language.
https://en.wikipedia.org/wiki/C%2B%2B/CLI
More information about the Digitalmars-d
mailing list