HallÃchen!

Thomas Heller <[EMAIL PROTECTED]> writes:

> Torsten Bronger <[EMAIL PROTECTED]> writes:
>
>> I have to generate a lot of data types (for ctypes by the way).
>> An example is
>>
>> ViUInt32  = u_long
>> ViPUInt32 = POINTER(ViUInt32)
>> ViAUInt32 = ViPUInt32
>>
>> [...]
>
> Others have answered your question already, but I would like to
> note one thing: The POINTER() function caches its results, so you
> could (and should, imo) write 'POINTER(ViUInt32)' instead
> everywhere in your code.  Calling POINTER(ViUInt32) *allways*
> returns the same type.

Actually I don't think that we will use them (ViP...) at all, since
we'll make use of "byref" whereever they occur in an args list.

But they are in the spec that we try to mimic, and as long as I
don't know for sure that nobody uses them, they don't hurt.

TschÃ,
Torsten.

-- 
Torsten Bronger, aquisgrana, europa vetus
-- 
http://mail.python.org/mailman/listinfo/python-list

Reply via email to