Skip to content
This repository has been archived by the owner on Aug 13, 2022. It is now read-only.

Non-existing Unsafe.println(x) #65

Closed
ninaandrup opened this issue Mar 6, 2022 · 1 comment · Fixed by #69
Closed

Non-existing Unsafe.println(x) #65

ninaandrup opened this issue Mar 6, 2022 · 1 comment · Fixed by #69

Comments

@ninaandrup
Copy link
Contributor

The example in this paragraph

def sum(x: Int32, y: Int32): Int32 = 
    let _ = Unsafe.println(x);
    let _ = Unsafe.println(y);
    x + y

does not work. It looks like there is an unsafePrint in Solver.flix.

@ninaandrup ninaandrup mentioned this issue Mar 6, 2022
14 tasks
@magnus-madsen
Copy link
Member

We have simply remove it. What you can do instead is:

let _ = println("Hello") as & Pure

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants