Jump to content

User talk:PureFox: Difference between revisions

m (Undo revision 331229 - nevermind, I found the Wren issue)
Tag: Undo
Line 268:
 
::Sorry, you're both right - the original Wren (and hence Go) solutions were wrong and it was just by good fortune that they were giving the right answers for N <= 6. However, I've corrected them and the results for N = 7, 8 and 9 now agree with the Raku solution. --[[User:PureFox|PureFox]] ([[User talk:PureFox|talk]]) 16:19, 3 November 2021 (UTC)
 
== problems with trait.wren ==
 
Hi;
 
I'm learning Wren by reading the Rosetta Code web site containing task solved using Wren. I copy the code and run it on my computer where I have installed Wren. The tasks written not using the extra Rosetta Code Wren libraries works great. All of the extra Rosetta Code Wren libraries that need trait.wren fail with the following errors:
 
an example...
 
ren_cli 15_puzzle_game_solver.wren
[../RC_Wren_Lib/trait line 108] Error at 'class': Expect method definition.
[../RC_Wren_Lib/trait line 108] Error at 'Const': Expect end of file.
Could not compile module '../RC_Wren_Lib/trait'.
[../RC_Wren_Lib/long line 3] in (script)
[./15_puzzle_game_solver line 1] in (script)
 
I've tried very carefully to copy&paste the trait.wren code and the same error occurs.
 
I have copy&pasted several (obviously not all!) of the Rosetta Code Wren libraries and this is the only one that I have problems with so far.
 
I have successfully run many of the Rosetta Code Wren examples and am slowly learning a new computer language!
 
Thanks,
Retired_Build_Engineer
Cookies help us deliver our services. By using our services, you agree to our use of cookies.