How high level is D?
NoMoreBugs
NoMoreBugs at gmail.com
Wed Nov 21 10:27:11 UTC 2018
On Wednesday, 21 November 2018 at 09:56:16 UTC, bmelo wrote:
> Hi people, I’m new to D and I am curious about how high level
> is D compared to another languages. I have a list of what
> languages to compare and I wanna know where you would classify
> D among them.
> The languages are: C, C++, Objective-C, D, Go, Swift, Pascal,
> Fortran, BASIC, Cobol, C#, Forth and Java.
>
> When I talk about low and high level language I’m referring to
> how much control the language gives to the hardware and what
> has more abstraction levels.
Well, at a high level, D does support the notion of a class.
However, D does not treat a class as an isolated conceptual unit
(a type).
You can pretend a class is such a unit however, by isolating it
within its own module.
So to understand D, you need to first understand the purpose of
the module - and I still have trouble with that, since I use
classes as the highest form of abstraction.
As for low level, which I don't do, the compiler is now written
in D isn't it? Presumably, that involves some pretty low level
stuff ;-)
So compare with languages that can do these two things, I would
say.
I'm not sure that Cobol has a compiler written in Cobol??
More information about the Digitalmars-d
mailing list