[Mono-list] a funny bug ;-)
Paolo Molaro
lupus@ximian.com
Sat, 13 Apr 2002 13:10:10 +0200
On 04/12/02 Adam Treat wrote:
> public class GNU {
>
> public GNU () : this (new GNU()) {}
>
> public GNU (GNU gnu) : this (gnu, new IsNot()) {}
>
> public GNU (GNU gnu, IsNot isnot) : this (gnu, isnot, new Unix()) {}
>
> public GNU (GNU gnu, IsNot isnot, Unix unix) {}
>
> public static void Main(string[] args)
> {
> GNU gnu = new GNU();
> }
> }
Recursive acronyms don't work on CPU: you'll get a stack overflow
(on unix systems, a SEGV).
lupus
--
-----------------------------------------------------------------
lupus@debian.org debian/rules
lupus@ximian.com Monkeys do it better