Sujet : Re: Why Python When There Is Perl?
De : OFeem1987 (at) *nospam* teleworm.us (Chris Ahlstrom)
Groupes : comp.os.linux.advocacyDate : 06. Apr 2024, 13:59:04
Autres entêtes
Organisation : None
Message-ID : <uurdea$22hkk$1@dont-email.me>
References : 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18
User-Agent : slrn/1.0.3 (Linux)
Lawrence D'Oliveiro wrote this copyrighted missive and expects royalties:
On Fri, 5 Apr 2024 08:40:26 -0400, Chris Ahlstrom wrote:
>
Lawrence D'Oliveiro wrote this copyrighted missive and expects
royalties:
On Wed, 3 Apr 2024 08:28:07 -0400, Chris Ahlstrom wrote:
>
The C++ enum-class is scoped and strongly typed, thus a bit
restrictive.
Implicit conversion (e.g. to int or char) is not supported.
>
Since Python supports multiple inheritance, you can define a subclass
which inherits from both enum and, say, int. Or enum and str.
Meh.
>
Along with C3 linearization?
>
Until C++ gets its own equivalent feature, then suddenly it’ll be not-meh.
Heh heh. Another check-box in the feeeeeechure matrix.
You were a bit excited over metaclasses for a while back there, weren’t
you?
Not really excited, just curious. Having dealt with them (and stereotypes)
in SysML, not itching to have that in C++.
Until you realized it would never work, because classes are not
objects in C++.
:-D WTF you talkin', Willis? Ye nae true Scotman fallacy?
-- You are a fluke of the universe; you have no right to be here.