Im making my own collection data structure, and I set up the object enumerator and other functions needed as per the intructions in the language reference. But when I try to run a ForNext loop:
Local list:RList=Rlist.Create()
For Local link:RLink=EachIn list
Print "asdf"
Next
End
It gives me the error:
Compile Error:ForEach collection expression error
[/Users/rich/Games/RichPrgms/list.bmx;7;1]
Build Error: failed to compile /Users/rich/Games/RichPrgms/list.bmx
What is wrong here? BlitzMax 1.04, Mac OS X
Local list:RList=Rlist.Create()
For Local link:RLink=EachIn list
Print "asdf"
Next
End
It gives me the error:
Compile Error:ForEach collection expression error
[/Users/rich/Games/RichPrgms/list.bmx;7;1]
Build Error: failed to compile /Users/rich/Games/RichPrgms/list.bmx
What is wrong here? BlitzMax 1.04, Mac OS X