On Friday, 1 September 2023 at 13:17:08 UTC, confused wrote:
On Friday, 1 September 2023 at 08:19:55 UTC, Richard (Rikki) Andrew Cattermole wrote:
``size_t`` is defined in ``object.d`` which is implicitly imported into all modules.

If it cannot be found, one of three things is happening:

1) You have messed with some cli args related to picking druntime/phobos
2) You have defined a module called object.
3) You have a broken compiler install.

I have in fact defined a module called ``` object ```. How is that related to this error?

I'm interested in betterC as a curiosity, and trying to explore the extent to which D classes and object-oriented programming can be preserved within its bounds (because I really like classes, and I really like D, and I really hate C++, and I'm trying to learn about bare-metal programming).

Thank you, by the way, for sharing your knowledge and time.

If you are looking for a better C you are not looking for classes

You contradict yourself

If you heard about betterC, then you heard about this: https://dlang.org/spec/betterc.html


Read it again, and specially this part: https://dlang.org/spec/betterc.html#consequences

C has no GC, therefore no class, see, your contradiction ;)

Reply via email to