abstract intialisation
BlitzMax Forums/BlitzMax Programming/abstract intialisation
| ||
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 |