Re: Phix: float32 return value
- Posted by petelomax 3 weeks ago
- 270 views
No, I'm not really happy.
OK, I've made a start on releasing 1.0.6.
Perhaps the easiest thing would be for you to update your GitHub repo. Maybe even with the older patches, thank you.
Alas, that rarely works out as well as I'd hope (self-hosted 'n all that, I guess), but GitHub is now updated, feel free to give it a shot.
I had an unpleasant experience. ... apologies for the grumbling and complaining
Good feedback is nice, but negative feedback is actually immensely useful, especially when well written as you have been doing, so keep that up!
In addition, return values of type c_bool are unstable (I don't know how else to put it).
I think it's best I leave that for now (ie ship 1.0.6 as-is), C return "bool" is a law unto itself, instead of the neat safe 1/0 typical in Phix,
true/false can be said or anything/0, not -ve/-ve, +ve/not +ve, +ve/0, 1/not 1, 0/not 0(!), 0/#80[byte|word|dword] bit, you name it.
As you indicated, there are often pretty much unavoidable call-specific workarounds needed. There may well be nowt I can do.

