Announcement

Collapse
No announcement yet.

Compiler bug(?) #2

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • Compiler bug(?) #2

    Hello,
    With a function defined:
    func drawCalBoxes() gfx_Rectangle(0,0,799,479,WHITE); gfx_Rectangle(1,1,798,478,WHITE); gfx_Rectangle(2,2,797,477,WHITE);endfunc
    If I then use it in code,
    drawCalBoxes();
    compiles and works fine.
    However,drawCalBoxes;
    also compiles, and does not throw any warnings or errors. This might be by design, as I think drawCalBoxes by itself equates to a function pointer? Not sure but thought I would mention it.
    I was debugging code and it took me a few minutes to realize I was missing the parenthesis.....
    Thanks!
    _______________
    Best Regards,
    Howard

  • #2


    Yeah, I think it's a bug too

    But unfortunately it's the same thing "C" does in those circumstances, so it is considered a feature that makes it consistent with "C".
    Mark

    Comment

    Working...
    X