Announcement

Collapse
No announcement yet.

The compiler does not get confused?

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

  • The compiler does not get confused?

    The following code causes the PB/DLL Version 5.0 compiler to GPF
    (All variables are local longs)
    Y = (Y2 - Y1) * (X - X1) \ (X2 - X1) + Y1
    But this is ok
    Y = ((Y2 - Y1) * (X - X1)) \ (X2 - X1) + Y1
    There is no difference in the order of precedence or am I missing
    something here?
    Dominic Mitchell
    Phoenix Visual Designer
    http://www.phnxthunder.com

  • #2
    Hmmm... interesting observation Dominic. I've forwarded this to R&D. Thanks for letting us know!

    -------------
    Lance
    PowerBASIC Support
    ( mailto:[email protected][email protected]</A> )
    Lance
    mailto:[email protected]

    Comment

    Working...
    X