1. Llama Problems

<!doctype html public "-//w3c//dtd html 4.0 transitional//en">
<html>
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.
<br>&nbsp;
<br>&nbsp;
<p>Neil Harvey</html>

new topic     » topic index » view message » categorize

2. Re: Llama Problems

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

new topic     » goto parent     » topic index » view message » categorize

3. Re: Llama Problems

<!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 message » categorize

4. Re: Llama Problems

Neil Harvey wrote:

> So if I just put "without warning" in my
> Llama file it will stop the warnings?

Yes.

-- David Cuny

new topic     » goto parent     » topic index » view message » categorize

5. Re: Llama Problems

<!doctype html public "-//w3c//dtd html 4.0 transitional//en">
<html>
&nbsp;
<p>"Cuny, David" wrote:
<blockquote TYPE=CITE>Neil Harvey wrote:
<p>> So if I just put "without warning" in my
<br>> Llama file it will stop the warnings?
<p>Yes.</blockquote>
Thanks. I'm a bit new to euphoria. I don't play around with it much.
<p>Neil Harvey
<br>&nbsp;</html>

new topic     » goto parent     » topic index » view message » categorize

6. Re: Llama Problems

On Sun, 20 Jun 1999, Jan & Gerald Harvey wrote:
> <!doctype html public "-//w3c//dtd html 4.0 transitional//en">
> <html>
> &nbsp;
> <p>"Cuny, David" wrote:
> <blockquote TYPE=CITE>Neil Harvey wrote:
> <p>> So if I just put "without warning" in my
> <br>> Llama file it will stop the warnings?
> <p>Yes.</blockquote>
> Thanks. I'm a bit new to euphoria. I don't play around with it much.
> <p>Neil Harvey
> <br>&nbsp;</html>

HI <p>Neil Harvey<g>
Please see if tyou can get rid of the <!@#$#> invalid html code
in your posts. It makes them really hard to read. Or, let us know
what program you are using to post with, so we can avoid it.

Thanks,
Irv

new topic     » goto parent     » topic index » view message » categorize

7. Re: Llama Problems

Irv Mullins wrote:

> On Sun, 20 Jun 1999, Jan & Gerald Harvey wrote:
> > <!doctype html public "-//w3c//dtd html 4.0 transitional//en">
> > <html>
> > &nbsp;
> > <p>"Cuny, David" wrote:
> > <blockquote TYPE=CITE>Neil Harvey wrote:
> > <p>> So if I just put "without warning" in my
> > <br>> Llama file it will stop the warnings?
> > <p>Yes.</blockquote>
> > Thanks. I'm a bit new to euphoria. I don't play around with it much.
> > <p>Neil Harvey
> > <br>&nbsp;</html>
>
> HI <p>Neil Harvey<g>
> Please see if tyou can get rid of the <!@#$#> invalid html code
> in your posts. It makes them really hard to read. Or, let us know
> what program you are using to post with, so we can avoid it.
>
> Thanks,
> Irv

There! I FINALLY figured it out! By the way...
Can you try to stop sending double messages?


Neil Harvey

new topic     » goto parent     » topic index » view message » categorize

Search



Quick Links

User menu

Not signed in.

Misc Menu