Autor Tema: [BUG] Compiler wants to take nonexistent typecasting branch  (Leído 1503 veces)

Sandman

  • Sr. Member
  • ****
  • Mensajes: 298
  • Karma: 48
[BUG] Compiler wants to take nonexistent typecasting branch
« en: Septiembre 20, 2009, 11:55:14 pm »
Código: [Seleccionar]
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

  • Hero Member
  • *****
  • Mensajes: 12548
  • Karma: 370
Re: [BUG] Compiler wants to take nonexistent typecasting branch
« Respuesta #1 en: Septiembre 21, 2009, 12:59:52 am »
thanks...

option 1, must be the choose...
Download Lastest BennuGD Release: http://www.bennugd.org/node/2

josebita

  • Administrator
  • *****
  • Mensajes: 4039
  • Karma: 257
    • BennuGD Mobile Worklog
Re: [BUG] Compiler wants to take nonexistent typecasting branch
« Respuesta #2 en: Septiembre 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.
« última modificación: Septiembre 21, 2009, 01:35:43 pm por josebita »