Sujet : Re: First Ada DO-178 Certification
De : ldo (at) *nospam* nz.invalid (Lawrence D'Oliveiro)
Groupes : comp.lang.adaDate : 17. Oct 2024, 00:53:04
Autres entêtes
Organisation : A noiseless patient Spider
Message-ID : <vepg4f$2e4fp$9@dont-email.me>
References : 1 2 3 4
User-Agent : Pan/0.160 (Toresk; )
On Thu, 17 Oct 2024 00:36:26 +0200, Nioclásán Caileán de Ghlostéir wrote:
This book is dated 1987.
...
I do not readily remember metaclasses in it.
In 1987, I think the only language that used the term “metaclass” was
Smalltalk, and that was just as a hack mechanism on which to hang what we
now call “classmethods”.
Python has metaclasses in a much more useful sense: being fully OO, every
value that a variable can hold is an object. Since functions and classes
are first-class objects, they, too, must be instances of some class(es).
The class that a class is an instance of is called its “metaclass”.