librelist archives

« back to archive

Context of Shoes::Widget changing

Context of Shoes::Widget changing

From:
Fela Winkelmolen
Date:
2010-06-24 @ 22:41
While hacking on Hackety Hack I came across the following strange behaviour 
that I think probably is a bug

http://gist.github.com/452089

screenshot:
http://yfrog.com/jcshoeswidgetp

let me know if I should file a bug report

Bye,

- Fela

Re: [shoes] Context of Shoes::Widget changing

From:
ashbb
Date:
2010-06-25 @ 12:21
Hi Fela,

Thank you for the report. :)

Yes, that seems a strange behavior. But not a bug, IMHO. ;-)
Look at Shoes manual, The Rules of Shoes
 - Shoes Tricky Blocks
 - Block Redirection

http://shoes.heroku.com/manual/Rules.html

If you'd like to add all outputs of addparas into the flow slot you defined
in the Shoes.app block, you need to bring the flow slot object like this:

http://gist.github.com/452774

Hope this helps,
ashbb

Re: [shoes] Context of Shoes::Widget changing

From:
Fela Winkelmolen
Date:
2010-06-25 @ 19:28
> Hi Fela,
> 
> Thank you for the report. :)
> 
> Yes, that seems a strange behavior. But not a bug, IMHO. ;-)
> Look at Shoes manual, The Rules of Shoes
>  - Shoes Tricky Blocks
>  - Block Redirection
> 
> http://shoes.heroku.com/manual/Rules.html
> 
> If you'd like to add all outputs of addparas into the flow slot you defined
> in the Shoes.app block, you need to bring the flow slot object like this:
> 
> http://gist.github.com/452774
> 
> Hope this helps,
> ashbb

Hi, thanks for your reply

Mhh.. the fact is that from a certain point on the behaviour is the expected 
one. It seems a race condition to me... Now of course it is true that there is 
not much documentation so one could say that no behaviour whatsoever is 
guaranteed... but it would be nice to have a consistent outcome independently 
from scheduling.

The workaround you proposed can't be easily used in the code I'm writing. For 
now I will keep the sleep instruction.

Cheers,

- fela