Re: Llama Problems
- Posted by David Cuny <dcuny at LANSET.COM> Jun 18, 1999
- 407 views
Neil Harvey wrote: > Is this what Llama means? I downloaded it and > EVERY example program I ran it spat at me a > load of errors. Someone clarify this. I suspect that it gave you warnings, not errors. The warnings relate to Llama's use of parameters - specifically, it's not using them. Llama triggers code in response to Windows events, passing a number of parameters that describe the event in detail. In some cases, the event handler may choose to ignore certain values. For example, an onPaint event returns the area of the screen that needs to be repainted: {x1,y1,x2,y2}. Typically, the demos ignore these values and simply repaint the entire window: procedure Paint( integer x1, integer y1, integer x2, integer y2 ) ... repaint the window ... end procedure Since the "without warning" option is not selected, Euphoria helpfully issues warnings about each of these parameters: warning: parameter x1 in Paint() is not used warning: parameter y1 in Paint() is not used warning: parameter x2 in Paint() is not used warning: parameter y2 in Paint() is not used Multiply this by a handful of similar event handlers, and you have a screenful of warnings. I've left them in because (1) in some cases, they are actually useful warnings, and (2) it reminds people that Llama is still alpha software. I hope this helps! -- David Cuny