Blonde Moment?

Blitz3D Forums/Blitz3D Programming/Blonde Moment?

_Skully(Posted 2009) [#1]
Why am I getting an illegal type conversion in the following code?

Type BrushElement
	Field ox
	Field oy
	Field NextBE.BrushElement
	Field PrevBE.BrushElement
End Type

Global be.BrushElement
be=New BrushElement
be\NextBE=New BrushElement
be=be\NextBE\PrevBE=be      ; <--- here
be=be\NextBE



_Skully(Posted 2009) [#2]
Oh man,

This is really messed... I get the illegal type conversion at
be\NextBE=New BrushElement

...in my main program but in the following line...
be=be\NextBE\PrevBE=be

...in the isolated code...
is this a compiler bug?


puki(Posted 2009) [#3]
Maybe it is confused that you are double using 'be'?


_Skully(Posted 2009) [#4]
LOL... I just figured that out! hahaha it was a blonde moment!


puki(Posted 2009) [#5]



_Skully(Posted 2009) [#6]
LOL!


puki(Posted 2009) [#7]
Wasn't me.

My account was hijacked by "Specis".


cyberyoyo(Posted 2009) [#8]
be=be\NextBE\PrevBE=be

in this line, you're assigning a boolean to the BE typed variable (because there are two "=")