Re: NO!!!!
- Posted by Kat <gertie at PELL.NET> Feb 09, 2001
- 462 views
On 9 Feb 2001, at 13:34, tone.skoda at SIOL.NET wrote: > Win32Lib isn't designed to be fast when it will become very big. > For example: Everything you create in Win32Lib goes thru > create() function. What if some day there would be > 1000 different things that could be created? > Then that create() function would become slower, let's not > even talk about WndProc where every message is processed - > 1000 ifs would make it slower. That where the execution of vars, and not needing to predeclare things, would be most handy. ************************ global function create(sequence createwhat) goto createwhat if error return("no such function","errorcode") end if :win_main -- do winmain stuff here return(whatever) :menu -- do main menu here return(whatever) :messagebox -- make a message box here return("yeas, it's done","this is where") end function ************************* The interpreter or compiler could optimise so the targets are pre-munged, and it's an machine code compare to get to the targets, very fast. But then, Robert is against executing variables, goto's, and premunging. Kat