Skip to content

Loading…

float! and float64! not completely compatible #300

Closed
meijeru opened this Issue · 3 comments

3 participants

@meijeru

I am sorry to go on nagging, but look at this:

v: declare pointer![float64!] d: 1.0 v: :d

-= Red/System Compiler =-
Compiling tests/mytest.reds ...
*** Compilation Error: attempt to change type of variable: v
*** from: [pointer! [float64!]]
***   to: [pointer! [float!]]
@iceflow19

If I remember correctly, float! -> float64! casting and/or float32! -> float64! casting is not implemented.

@meijeru

But float! and float64! are synonyms, so casting shouldn't be needed?

@dockimbel
Red Programming Language member

@iceflow19 float! -> float32! -> float! castings are implemented since this summer at least. Let me know if you find bugs in using them.

Float! and float64! are synonyms.

@dockimbel dockimbel closed this
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.