Hi Charles,
learning about OxygenBasic and exploring the demos in projectsB\RosettaCode I found some programs which did not work as expected. I tried with Vista 32bit and Win7 64bit using Oxygenbasic Version: A40 19:30 25/02/2015
1) CompileTime.o2bas
ERROR: Unidentified operand
WORD: pling10
LINE:
PASS: 1
if I delete quote and replace ===Source=== with " then the demo works.
2) ConstrainedGenericity.o2bas
Linker found unidentified names:
food: level 0
food: level 0
in line 6 there is: enum food foodlist
in the TEST section you use:
Hamper.put food.pudding,large,several
Hamper.put food.pie,huge,few
but I have no idea what should happen?
3) Evolution.o2bas
ERROR: Syntax:[ebx+0x1004]
WORD: le
LINE: 6
PASS: 1
le is given in line 5 and line 6
4) LibraryFunctions.o2bas
ERROR: parameters mismatch for procedure string:
params given :
OPTIONS:
string(sys,sys) returns string
string(sys,zstring) returns string
string(sys,string) returns string
WORD: string
LINE: 5
PASS: 1
If I comment out the first declaration then the demo works.
5) RunTimeLoadLib.o2bas
Error:
ERROR: Must refer to a proc pointer: messagebox
WORD: messagebox
LINE: 9
PASS: 2
I do not know why this does not work.
Some demos do not work at all.
6) Accumfactory.o2bas:
7) ActiveObject.o2bas:
8 RetVals.o2bas
gxo2.exe / co2.exe crashes . Win7 64bit shows gxo2.exe in the TaskManager for some time, which then disappears.
9) MatrixClass.o2bas:
10) PolymorphicCopy.o2bas:
These demos print the first result, but after 'OK' gxo2.exe crashes. Win7 64bit shows gxo2.exe for some time.
This demo shows a different result:
11) ConcatArrays.o2bas:
result should be 70, but shows 0
I wonder if in some of these cases a different syntax must be used?
The website of rosettacode.org lists 66 pages of resolved tasks, but I can only find 46 files in the RosettaCode directory? There seems to be no easy way to load the tasks of a language all at once from the website. Searching for a single file and copy / paste is a bit tedious.
Roland