Commit 808d494
[Z3] Update
This commit updates `Float >> toBitVector:` to work on both Pharo and
Smalltalk/X.
The code is arguably ugly but I did not find a nicer way to do it. One
cannot simply force "Pharo way" on Smalltalk/X and make `#basicAt:`
behaving the same - this would break existing code.
Another way would be to have some "new" compatibility method, but then,
where to place it? To `Z3-FFI-Pharo` and `Z3-FFI-SmalltalkX`? Did not
feel right - this has nothing to do with FFI.
Yet another way would be revert back and use of `asIEEE64BitWord`, and
implement this in both Smalltalk/X and "our" Pharo 8. This would break
`FloatingPoint` on stock Pharo 8 (but perhaps that's okay).
So in the end, I opted for this ugly "dialect" test and keep the ugliness
local to this method.Float >> toBitVector: to work also on Smalltalk/X1 parent 33e3380 commit 808d494
1 file changed
+23
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
7 | | - | |
8 | | - | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
9 | 30 | | |
10 | 31 | | |
11 | 32 | | |
| |||
0 commit comments