|
|
Hi everyone,
I encountered a error while executing a little program I wrote. When I launch my file using GST, it displays: 02.Problem2.st:40: parse error, expected ']' Here are the matching lines ( 35> 1 to: 9 do: 36> [:i | 37> 1 to: 9 do: 38> [ :y | 39> (nBangArray at: i = (y printString)) ifTrue: 40> [(nBangArray at: i) := y.]. 41> ]. 42> ]. I definitely don't where my mistake comes from. Can anyone help me? Il est encore temps d'ouvrir les yeux: http://www.reopen911.info/ | http://twitter.com/Phen0m77/ | http://blog.gamekult.com/blog/phen0m/ |
Opera + DuckDuckGo = Smartest Browsing!
|
|
Ladislav Marek |
|
|
Hi,
(nBangArray at: i) := y is not correct syntax, I think you mean: nBangArray at: i put: y On Sat, Oct 22, 2011 at 16:26, Phen0m <[hidden email]> wrote: > Hi everyone, > > I encountered a error while executing a little program I wrote. > When I launch my file using GST, it displays: > /02.Problem2.st:40: parse error, expected ']'/ > > Here are the matching lines ( > 35> /1 to: 9 do:/ > 36> /[:i |/ > 37> /1 to: 9 do:/ > 38> /[ :y |/ > 39> /(nBangArray at: i = (y printString)) ifTrue:/ > 40> / [(nBangArray at: i) := y.]./ > 41> /]./ > 42> /]./ > > I definitely don't where my mistake comes from. Can anyone help me? > > ----- > Il est encore temps d'ouvrir les yeux: http://www.reopen911.info/ | http://twitter.com/Phen0m77/ | http://blog.gamekult.com/blog/phen0m/ | > Opera + DuckDuckGo = Smartest Browsing! > -- > View this message in context: http://forum.world.st/Problem-with-brackets-tp3928272p3928272.html > Sent from the Gnu mailing list archive at Nabble.com. > > _______________________________________________ > help-smalltalk mailing list > [hidden email] > https://lists.gnu.org/mailman/listinfo/help-smalltalk > _______________________________________________ help-smalltalk mailing list [hidden email] https://lists.gnu.org/mailman/listinfo/help-smalltalk |
|
|
Thanks for your reply!
That was exactly this. My syntax still is not that correct, but I'm practicing.
Il est encore temps d'ouvrir les yeux: http://www.reopen911.info/ | http://twitter.com/Phen0m77/ | http://blog.gamekult.com/blog/phen0m/ |
Opera + DuckDuckGo = Smartest Browsing!
|
| Powered by Nabble | See how NAML generates this page |