[BUG] Compiler wants to take nonexistent typecasting branch

Started by Sandman, September 20, 2009, 11:55:14 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

Sandman


Type Lol
float zomg;
End

Process Main()
Private
Lol* lol;
Begin

return lol.zomg; // works
return (lol.zomg); // does not work

// Reason: compiler tries to take the (Lol) typecasting branch because of the (
// Solution: depends on what is wanted...
//   1 - fix this error (pick me, pick me!)
//   2 - remove possibility of using the name of a Type as variable name

End
-- Sandman

SplinterGU

Download Lastest BennuGD Release: http://www.bennugd.org/node/2

josebita

Yeah, I fixed a problem similar to this on my karaoke a couple of days ago... I was going to report it.