Re: A rather dreamy request...
- Posted by Hawke <mdeland at NWINFO.NET> Aug 19, 1998
- 594 views
Ralf Nieuwenhuijsen wrote: > Hawke, what exactly is the difference with this approuch other than > syntaxtical ? > constant btnStartTimer[clicked] = routine_id ("btnStartTimerRoutine") > And then call it like: > call_proc (btnStartTimer[clicked]) actually, *blush*, I had forgotten about call_proc, or rather, didn't think to implement it that way. your above code actually does what i was suggesting. things like: if baddies = 0 then call_proc(picWonGame[load]) end if (provided you had constant picWonGame[load] = routine_id("picWonGame_Load") already predefined) would actually work... correct? it's not quite as easy to read as dr.seuss but it's not that bad either. I dunno, i guess i was just trying to avoid all that 'messy' routine_id/call_proc coding... the advantage of doing that i suppose, as compared to simply: if baddies=0 then picWonGame_Load end if would be that it becomes "truly" global by using routineID/callproc... right? and the benefit of that "truly global" is to allow for better data hiding and encapsulation (is that the right word?)?? of data and their associated routines? and sooooo i humbly withdraw my dreamy request, since it's already "done" anyway... take care of another today-- Hawke'