From: Marc P. <ma...@an...> - 2003-04-19 12:02:22
|
On Fri, 18 Apr 2003 18:19:21 -0700, Brian Goetz <br...@qu...> wrote: > Of course this causes a stack overflow. You have written a recursive > macro with no base case. It is equivalent to: > > public int screwMe(int n) { > return screwMe(n-1); > } No, it's like: public int screwMe(int n) { if (n > 0) return screwMe(n-1); else return 0; } > Do the same with your macro. There must be some way #visitChildren can > expand to something that doesn't involve calling #visitChildren.... ... not having any children? Cheers -- Marc Palmer (Wangjammer5) http://www.wangjammers.org Java Consultants |