arturo-lang/arturo

[VM/values/printable] `codify` doesn't produce correct output for Inline blocks

Closed this issue · 1 comments

[VM/values/printable] codify doesn't produce correct output for Inline blocks
we can check this via as.code [(1 2)[3 4]]
Block values work fine; Inline values show up as blocks

# TODO(VM/values/printable) `codify` doesn't produce correct output for Inline blocks

        of Date         : result &= fmt("to :date \"{v.eobj}\"")

        # TODO(VM/values/printable) `codify` doesn't produce correct output for Inline blocks
        #  we can check this via `as.code [(1 2)[3 4]]`
        #  Block values work fine; Inline values show up as blocks
        #  labels: vm, bug
        of Inline, Block:
            if not (pretty and unwrapped and level==0):
                if v.kind==Inline: result &= "("
ndex f7bd6841ab..efa0bd8aed 100644
++ b/src/vm/values/value.nim

2e600d0c675a35be1b76cb081d7b6c950f1a6ac6