Re: Llama Problems
- Posted by Jan & Gerald Harvey <vk2bnh at IX.NET.AU> Jun 18, 1999
- 412 views
<!doctype html public "-//w3c//dtd html 4.0 transitional//en"> <html> <p>David Cuny wrote: <blockquote TYPE=CITE>Neil Harvey wrote: <p>> Is this what Llama means? I downloaded it and <br>> EVERY example program I ran it spat at me a <br>> load of errors. Someone clarify this. <p>I suspect that it gave you warnings, not errors. The warnings relate to <br>Llama's use of parameters - specifically, it's not using them.</blockquote> That's right. <blockquote TYPE=CITE>Llama <br>triggers code in response to Windows events, passing a number of parameters <br>that describe the event in detail. In some cases, the event handler may <br>choose to ignore certain values. <p>For example, an onPaint event returns the area of the screen that needs to <br>be repainted: {x1,y1,x2,y2}. Typically, the demos ignore these values and <br>simply repaint the entire window: <p> procedure Paint( integer x1, integer y1, integer x2, integer y2 ) <br> ... repaint the window ... <br> end procedure <p>Since the "without warning" option is not selected, Euphoria helpfully <br>issues warnings about each of these parameters:</blockquote> <blockquote TYPE=CITE> warning: parameter x1 in Paint() is not used <br> warning: parameter y1 in Paint() is not used <br> warning: parameter x2 in Paint() is not used <br> warning: parameter y2 in Paint() is not used <br> </blockquote> So if I just put "without warning" in my Llama file it will stop the warnings??? <blockquote TYPE=CITE> <br>Multiply this by a handful of similar event handlers, and you have a <br>screenful of warnings.</blockquote> More than a screenful! <blockquote TYPE=CITE>I've left them in because (1) in some cases, they are <br>actually useful warnings,</blockquote> It's Possible that they are useful.. <blockquote TYPE=CITE>and (2) it reminds people that Llama is still <br>alpha software. <br> </blockquote> Definitely alpha software! <blockquote TYPE=CITE> <br>I hope this helps! <p>-- David Cuny</blockquote> Thanks <br> <p>Neil Harvey</html>