[squeak-dev] FFI: FFI-Kernel-eem.186.mcz

commits at source.squeak.org commits at source.squeak.org
Tue Jul 27 03:48:10 UTC 2021


Eliot Miranda uploaded a new version of FFI-Kernel to project FFI:
http://source.squeak.org/FFI/FFI-Kernel-eem.186.mcz

==================== Summary ====================

Name: FFI-Kernel-eem.186
Author: eem
Time: 26 July 2021, 8:48:08.513847 pm
UUID: 2b488210-34ba-4568-8a3e-f0c9b6499b71
Ancestors: FFI-Kernel-eem.185

FFI has no business defining floatAt:[put:] in the FloatArray hierarchy.  FloatArrays are indexed by element index, *not* by byteIndex.  Defining floatAt:[put:] does serious harm to graphics applications that expect FloatArray>>floatAt:[put:] to take element indices.

=============== Diff against FFI-Kernel-eem.185 ===============

Item was removed:
- ----- Method: FloatArray>>floatAt: (in category '*FFI-Kernel-accessing') -----
- floatAt: byteOffset
- 	"Backstop for compatibility with handle-based access. Raw-bits arrays are their own handle. See #getHandle and ExternalType >> #handle:at:."
- 	
- 	^ self atByteOffset: byteOffset!

Item was removed:
- ----- Method: FloatArray>>floatAt:put: (in category '*FFI-Kernel-accessing') -----
- floatAt: byteOffset put: value
- 	"Backstop for compatibility with handle-based access. Raw-bits arrays are their own handle. See #getHandle and ExternalType >> #handle:at:put:."
- 	
- 	^ self atByteOffset: byteOffset put: value!



More information about the Squeak-dev mailing list