Re: Llama Problems

new topic     » goto parent     » topic index » view thread      » older message » newer message

<!doctype html public "-//w3c//dtd html 4.0 transitional//en">
<html>
&nbsp;
<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>&nbsp;&nbsp; procedure Paint( integer x1, integer y1, integer x2, integer
y2 )
<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; ... repaint the window ...
<br>&nbsp;&nbsp; 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>&nbsp;&nbsp; warning: parameter x1 in Paint() is
not used
<br>&nbsp;&nbsp; warning: parameter y1 in Paint() is not used
<br>&nbsp;&nbsp; warning: parameter x2 in Paint() is not used
<br>&nbsp;&nbsp; warning: parameter y2 in Paint() is not used
<br>&nbsp;</blockquote>
So if I just put "without warning" in my Llama file it will stop the warnings???
<blockquote TYPE=CITE>&nbsp;
<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>&nbsp;</blockquote>
Definitely alpha software!
<blockquote TYPE=CITE>&nbsp;
<br>I hope this helps!
<p>-- David Cuny</blockquote>
Thanks
<br>&nbsp;
<p>Neil Harvey</html>

new topic     » goto parent     » topic index » view thread      » older message » newer message

Search



Quick Links

User menu

Not signed in.

Misc Menu