[TIB] Re: Question


[Prev][Next][Index][Thread]

[TIB] Re: Question




> 
> Okay, so it does leak a little.  For a small menu
> program, you won't notice it THAT much.  ;)
> 
> Good info though, thanks.  :)
> 

Of course, but that doesn't make it good
programming. ;) You're welcome.

Consider this program:

While 1
Menu("MENU","OPTION 1",1,"OPTION 2",2,"QUIT",0)

Lbl 1
Disp "THIS IS A USEFUL PROGRAM"
Goto 3

Lbl 2
Disp "I'M A LIAR"
Goto 3 [Yeah, this is pointless]

Lbl 3
End [Returns to the first line (While 1)]

Lbl 0
STOP [Pointless, I know]

Anybody feels like testing whether this leaks
memory? (I'd expect it doesn't.)

Rob van Wijk

-- 
+++ GMX - Mail, Messaging & more  http://www.gmx.net +++
NEU: Mit GMX ins Internet. Rund um die Uhr für 1 ct/ Min. surfen!




References: