tag:blogger.com,1999:blog-8513438391157777465.post3316768352684593632..comments2023-04-07T05:56:45.278-07:00Comments on Re: Factor: Building "cat"mrjbq7http://www.blogger.com/profile/06842721076008035602noreply@blogger.comBlogger6125tag:blogger.com,1999:blog-8513438391157777465.post-22238678799268801692010-08-31T18:03:27.014-07:002010-08-31T18:03:27.014-07:00@Sam: Yep, a classic race condition. I thought it...@Sam: Yep, a classic race condition. I thought it would be simpler to demonstrate with an existence check.<br /><br />My original code used <a href="http://docs.factorcode.org/content/article-errors.html" rel="nofollow">exception handling</a> to trap the file system error as you suggest, but it seemed too advanced. Probably I should have kept it, though!mrjbq7https://www.blogger.com/profile/06842721076008035602noreply@blogger.comtag:blogger.com,1999:blog-8513438391157777465.post-69059918522593663852010-08-31T09:12:21.056-07:002010-08-31T09:12:21.056-07:00Note that there is a race condition: you should no...Note that there is a race condition: you should not test for the existence of the file before opening it, but try to open the file and catch the error if there is one.Anonymoushttps://www.blogger.com/profile/17369614276833229043noreply@blogger.comtag:blogger.com,1999:blog-8513438391157777465.post-594932773678348652010-08-22T22:33:59.678-07:002010-08-22T22:33:59.678-07:00@Guillermo: Thanks! I plan on doing a few posts a...@Guillermo: Thanks! I plan on doing a few posts about GUI's soon. And I've got some image work coming up too.mrjbq7https://www.blogger.com/profile/06842721076008035602noreply@blogger.comtag:blogger.com,1999:blog-8513438391157777465.post-19858671613020048692010-08-22T22:32:53.841-07:002010-08-22T22:32:53.841-07:00Right, I was missing a "drop" in the pos...Right, I was missing a "drop" in the post (was correct on Github). It's fixed now.mrjbq7https://www.blogger.com/profile/06842721076008035602noreply@blogger.comtag:blogger.com,1999:blog-8513438391157777465.post-62531799471222955642010-08-22T22:22:04.097-07:002010-08-22T22:22:04.097-07:00Does not quite work on 0.93:
The input quotations...Does not quite work on 0.93:<br /><br />The input quotations to "if" don't match their expected effects<br /><br />Input<br />[ cat-lines ] <br /><br />Expected<br />(( ..a -- ..b ))<br /><br />Got<br />(( -- x ))<br /><br />Input<br />[ cat-file ]<br /><br />Expected<br />(( ..a -- ..b ))<br /><br />Got<br /><br />(( -- ))vegaihttps://www.blogger.com/profile/00016418687875318323noreply@blogger.comtag:blogger.com,1999:blog-8513438391157777465.post-90916063219842972052010-08-22T18:07:13.691-07:002010-08-22T18:07:13.691-07:00John, I really like your posts. Is there a way you...John, I really like your posts. Is there a way you could post about developing GUI? Or showing a simple PNG? I'm having trouble finding info online.Guillermohttps://www.blogger.com/profile/01611725216481098591noreply@blogger.com