[pypy-dev] Fwd: Work plan for PyPy
fijal at genesilico.pl
Sat Jun 30 13:56:03 CEST 2007
Armin Rigo wrote:
> Hi Maciek,
> On Sat, Jun 30, 2007 at 01:12:57PM +0200, Maciek Fijalkowski wrote:
>> Just a little correction - you can express c-level constant in lltype.
>> There is CConstant class for that.
> True, although I'm not sure it works for non-integer constants (e.g.
> static data). Also, I suppose that it could be abused to represent
> "errno" but it looks fragile.
The primary reason for creating this class was to use it for errno, so I
don't think it's an abuse. Anyway, I think it should be extended to
present some non-primitive types (it works for any pre-defined primitive
type right now).
More information about the Pypy-dev