| View previous topic :: View next topic |
| Author |
Message |
Frankie
Joined: 02 Nov 2008 Posts: 2850
|
|
| Back to top |
|
 |
Krogdor
Joined: 18 Apr 2008 Posts: 1390 Location: The Interwebs
|
|
| Back to top |
|
 |
Laszlo
Joined: 14 Feb 2005 Posts: 4710 Location: Boulder, CO
|
Posted: Sun May 31, 2009 9:01 pm Post subject: |
|
|
Some of the requirements make no sense. E.g. there have been many arithmetic expression evaluators posted to the AHK Forum, but creating an abstract-syntax tree just makes the code more complicated. AST's are to be used in low-level compiled code, only.
Also, 3.5 years ago we posted several versions of the 99 bottles of beer.
Last edited by Laszlo on Sun May 31, 2009 9:08 pm; edited 1 time in total |
|
| Back to top |
|
 |
jaco0646
Joined: 07 Oct 2006 Posts: 3113 Location: MN, USA
|
Posted: Sun May 31, 2009 9:06 pm Post subject: |
|
|
| That would be a good point to make on the respective task's discussion page. Clarifying the task descriptions is one of the site's goals. |
|
| Back to top |
|
 |
Laszlo
Joined: 14 Feb 2005 Posts: 4710 Location: Boulder, CO
|
Posted: Sun May 31, 2009 9:16 pm Post subject: |
|
|
| Interestingly, most of the program samples for the 99 bottles of beer problem are wrong on the rosettacode website (improper plural/singular handling, missing the final text: "No more bottles of beer on the wall, no more bottles of beer.`nGo to the store and buy some more, 99 bottles of beer...", etc). |
|
| Back to top |
|
 |
jaco0646
Joined: 07 Oct 2006 Posts: 3113 Location: MN, USA
|
Posted: Sun May 31, 2009 9:17 pm Post subject: |
|
|
Well as long as the AHK example is accurate, we're OK.  |
|
| Back to top |
|
 |
Laszlo
Joined: 14 Feb 2005 Posts: 4710 Location: Boulder, CO
|
Posted: Sun May 31, 2009 9:24 pm Post subject: |
|
|
| The AHK example is not accurate, either (missing the last lines). C.f. http://99-bottles-of-beer.net/lyrics.html. Also, the comparisons "x - A_Index - 1 > 1" look funny ("x - A_Index > 2"), there is no need for files and a console window, etc. |
|
| Back to top |
|
 |
jaco0646
Joined: 07 Oct 2006 Posts: 3113 Location: MN, USA
|
Posted: Sun May 31, 2009 10:48 pm Post subject: |
|
|
I've replaced the AHK example with a new, GUI model.  |
|
| Back to top |
|
 |
|