Menu

+ sign causes compile to hang

2007-02-21
2013-05-30
  • Russ Hensel

    Russ Hensel - 2007-02-21

       
    In    
        Great Cow BASIC (0.9 8/2/2007)
       
    The following statement causes the compiler to hang, never finishes, no error message.

        #define A_dir_forward     = +1 
       
    Removing the + fixes it
       
        Russ

     
    • Hugh Considine

      Hugh Considine - 2007-02-23

      GCBASIC is crashing because of the = sign. When this is used in a #define, GCBASIC will attempt to perform the calculation after it. This means that the = sign should not normally be used in a #define, as it can cause unexpected results.

      Thanks for reporting this issue, and I'll deal with it as soon as possible.

       

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.