Bennu Game Development

English Forums => Suggestions => Topic started by: Sandman on September 20, 2009, 11:55:14 PM

Title: [BUG] Compiler wants to take nonexistent typecasting branch
Post by: Sandman on September 20, 2009, 11:55:14 PM

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
Title: Re: [BUG] Compiler wants to take nonexistent typecasting branch
Post by: SplinterGU on September 21, 2009, 12:59:52 AM
thanks...

option 1, must be the choose...
Title: Re: [BUG] Compiler wants to take nonexistent typecasting branch
Post by: josebita on September 21, 2009, 01:31:06 PM
Yeah, I fixed a problem similar to this on my karaoke a couple of days ago... I was going to report it.