x=New x error

BlitzMax Forums/BlitzMax Programming/x=New x error

The forum is locked. These are the original blitzbasic.com forums, kept so they can still be read. No new topics, replies or edits can be made here. To join in, head over to the Blitz3D+ forums.

on the first sample

new only accepts types. it does the same as "new" in c like languages: it creates a new instance of the class / type you tell it.
There is no type "i" ( as well as "int" etc are no types that can be instanced )

and the second sample:

new requires, as mentioned above, the TYPE, not a variable ( see the helpfiles on userdefined types for further informations )