Re: Prothon IS different inside

Paul Prescod <[email protected]>
Newsgroups gmane.comp.lang.prothon.user
Message-ID <[email protected]>
Mark Hahn wrote:
>...
> 
> Perl and Python have architectures very much hard-wired to look like the
> hardware they run on.  They have instructions that are expansions of that
> hardware model.  They have hard-wired types like ints, floats, and strings
> and then add objects on top of that as an afterthought.  Prothon has only
> objects and nothing else.

That isn't true Mark. Int is a kind of object in Python. Float is a kind 
of object. String is a kind of object.

/python/dist/src/Objects/intobject.c
/python/dist/src/Objects/floatobject.c
/python/dist/src/Objects/stringobject.c

The words "float" and "string" do not even occur in the descriptions of 
Python's bytecodes:

http://docs.python.org/lib/bytecodes.html

> Am I crazy?  Is my object-oriented interpreter doomed because it is so out
> of the mainstream?

Python's interpreter is totally object oriented.

  Paul Prescod
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.