abstract intialisation

BlitzMax Forums/BlitzMax Programming/abstract intialisation

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.

basically, if your using abstract classes to encapsulate
some related functions & globals..this little trick if you
can call it that..will force intilialisation..
heh..maybe this is common knowledge..but if not..it might
come in handy in some situations..


Type gInteresting Abstract
Global State:Int=gInteresting.Init()
Function Init:Int()
Print"heh..looks like im contructing an abstract
class!..how odd! :]"
Return True
EndFunction
EndType

heh..ok its probably not that useful, it is quite interesting
though :p