Include mid-type

BlitzMax Forums/BlitzMax Programming/Include mid-type

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.

If that code was not already wrong even thought its just a showcase, it perhaps would make sense ;-)

A correct implementation of such a feature would look similar to function pointer declaration already allows you to work (and basically could be done with methods and reflection as well):

Type Animal
  Field HP:int

  Field Kill()

  Method Feed()
    HP:+1
  End Method
End Type

Method Animal::Kill()
 HP=0
End Method


but in the end, the implementations must still be in the same file.