in reply to Mixing procedural and OO code, one file.
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.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Mixing procedural and OO code, one file.
by DStaal (Chaplain) on Feb 05, 2009 at 16:44 UTC | |
by ikegami (Patriarch) on Feb 05, 2009 at 16:58 UTC | |
by DStaal (Chaplain) on Feb 05, 2009 at 17:21 UTC | |
by ikegami (Patriarch) on Feb 05, 2009 at 18:55 UTC | |
by DStaal (Chaplain) on Feb 05, 2009 at 20:06 UTC |