jasonsikes / QLogo

QLogo is a rewrite of the UCBLogo language and user interface written in C++ using Qt.

Home Page:https://qlogo.org

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

PRINTDEPTHLIMIT off by one

jasonsikes opened this issue · comments

When PRINTDEPTHLIMIT is set to zero, nothing should be printed. No brackets or braces.

make "printdepthlimit 0
show "hello
show [this is a test]
show {this is a test}

Should result in:

...
...
...

Similarly:

make "printdepthlimit 1
show [[[] [] []]]
show [this is a test]
show {this is a test}
show [[this is a test]]
show {{this is a test}}

should result in:

[...]
[... ... ... ...]
{... ... ... ...}
[...]
{...}

This is a minor issue, and I think the current implementation is suitable. e.g.

? make "printdepthlimit 1
? show [this is a test]
[... ... ... ...]