Re: [Pharo-users] FFIExternalEnumeration int versus long

2017-11-14 Thread Ben Coman
On 15 November 2017 at 00:17, Todd Blanchard wrote: > Yeah, I don't know if that is necessarily worth doing TBH. > > Generally enumerations are going to be default int size unless you have > values that are out of range. > > In this case you have a function that returns a long. In a strictly typ

Re: [Pharo-users] FFIExternalEnumeration int versus long

2017-11-14 Thread Todd Blanchard
Yeah, I don't know if that is necessarily worth doing TBH. Generally enumerations are going to be default int size unless you have values that are out of range. In this case you have a function that returns a long. In a strictly typed language you would be required to do a type cast anyhow. I

Re: [Pharo-users] FFIExternalEnumeration int versus long

2017-11-14 Thread Esteban Lorenzano
right now FFIExternalEnumeration support int32 and uint32 types, but I think is not hard to create a FFIExternalLongEnumeration or whatever is need. FFIExternalEnumeration >> initializeEnumeration, however, could be better refactored, I admit ;) > On 13 Nov 2017, at 23:41, Ben Coman wrote: >