History

sl_print_child: print unbound as well

Instead of aborting in random places within the VM when throwing exceptions, print #<unbound>. In normal circumstances this won't ever happen.

Sigrid Solveig Haflínudóttir committed 3 months ago

Commit 4afe00d1 parent 8efbd141 file · +3 −1Browse files

Unified · Split

src/print.c+3−1
@@ -538,7 +538,9 @@ sl_print_child(sl_v v) · 537 unmodified lines
538 outsc("#<eof>");538 outsc("#<eof>");
539 else if(v == sl_void)539 else if(v == sl_void)
540 outsc("#<void>");540 outsc("#<void>");
541 else // unbound, should never happen541 else if(v == sl_unbound)
542 outsc("#<unbound>");
543 else
542 abort();544 abort();
543 break;545 break;
544 case TAG_FN:546 case TAG_FN:

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t