object = new instance (wtf a bug ???)

BlitzMax Forums/BlitzMax Programming/object = new instance (wtf a bug ???)

skn3(Posted 2006) [#1]
Type mytype
End Type

Local instance1:mytype = New mytype
Local instance2:mytype = New instance1


Why does this work ? And what could it be used for?


Yan(Posted 2006) [#2]
http://www.blitzbasic.com/Community/posts.php?topic=61219#684098


Picklesworth(Posted 2006) [#3]
...Cool...

Now, I have to figure out how this can help me.
All these words are quite puzzling!


H&K(Posted 2006) [#4]
I still think it should go. An instances Type is set at compile time, and as such you might aswell just use the Type name.
The only thing it does is lead to problems if you havent been tight with your nameing policy