Migration Guide : Migrating from Version 11.0.0 : "Rectangle" key renamed to "RectangleFunction" in #_PRAGMA_PlatformFunctions
"Rectangle" key renamed to "RectangleFunction" in #_PRAGMA_PlatformFunctions
The following key:
(name: Rectangle isConstant: true valueExpression: 'PlatformFunction fromArray: #(''C'' ''Rectangle'' nil ''gdi32.dll'' #(#pointer #int32 #int32 #int32 #int32) #bool)')
was changed to:
(name: RectangleFunction isConstant: true valueExpression: 'PlatformFunction fromArray: #(''C'' ''Rectangle'' nil ''gdi32.dll'' #(#pointer #int32 #int32 #int32 #int32) #bool)')
in the method WindowsPlatformFramework class >> _PRAGMA_PlatformFunctions.
Reason for change
If you have a class that uses the pool dictionary PlatformFunctions and you want to write a method that uses the "Rectangle" global, that global will resolve to the PlatformFunction instead of the class Rectangle. We believe this should not be the case and therefore the rename of the key.
Action required
If you have code using the "Rectangle" key of PlatformFunctions, you have to change it to "RectangleFunction"
.
Last modified date: 06/01/2022