Some quick comments.
You placed a prototype ("($$)") on output (bad) and you use "&" on the call (bad) which means "ignore the prototype". That makes no sense (bad).
Why don't you place output in a module instead of main. You could even import it if you so desired. Actually, it's already been done.
In reply to Re: Mixing procedural and OO code, one file.
by ikegami
in thread Mixing procedural and OO code, one file.
by DStaal
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |