Re: Re[2]: Re: class proposal
"Mark Hahn" <[email protected]>
| Newsgroups | gmane.comp.lang.prothon.user |
|---|---|
| Message-ID | <[email protected]> |
Lenard Lindstrom wrote: > Prothon > is supposedly "classless". That is why the name "Prototype Python". > But now the discussion > is on to add classes to Prothon. Yet the prothon interpreter lacks > that low level abstract "type" layer of C-Python. Lacking this layer > the prothon interpreter will understand classes directly. That is, > the prothon interpreter will know two object types, prototypes and > classes, > and treat each differently. Except for certain optimizations the > Python interpreter only > understands one kind of object. It knows how to find the PyTypeObject > of an object, and > it knows how to call methods of PyTypeObject. So at the root of it > the Python language under C-Python is more classless than Prothon > will be. You are jumping the gun a little bit. We have not decided how to implement classes yet.