A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://mail.python.org/pipermail/python-dev/2001-June/015309.html below:

could int, str, tuple etc. become type objects?

[Python-Dev] quick poll: could int, str, tuple etc. become type objects?Mark Hammond MarkH@ActiveState.com
Thu, 7 Jun 2001 11:09:51 +1000
> If you have not already done so I suggest that you look at
> what MicroSoft .NET is doing in this area. In .NET, for example,
> int is a class and they have the technology to define the
> interface to an int and optimize the performace of the none
> derived cases.

Actually, that is not completely true.  There is a "value type" and a class
version.  The value type is just the bits.  The VM has instructions that
work in the value type.  As far as I am aware, you can not use a derived
class with these instructions.

They also have the concept of "sealed" meaning they can not be subclassed.
Last time I looked, strings were an example of sealed classes.

Mark.




RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4