Shop OBEX P1 Docs P2 Docs Learn Events
line continuation character ? — Parallax Forums

line continuation character ?

Don PomplunDon Pomplun Posts: 116
edited 2007-02-26 04:01 in Propeller 1
I don't find any reference to a "line continuation character" in Spin.. Is there?

TIA
-- Don

Comments

  • Mike GreenMike Green Posts: 23,101
    edited 2007-01-25 20:08
    No, there is not
  • LucidGuppyLucidGuppy Posts: 32
    edited 2007-02-25 20:14
    I would just like to state that a line continuation character would be awesome.
  • CJCJ Posts: 470
    edited 2007-02-25 20:23
    not too long ago, someone found that if you put a carriage return inside of multiline comment {
    } then it works.

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    Who says you have to have knowledge to use it?

    I've killed a fly with my bare mind.
  • rokickirokicki Posts: 1,000
    edited 2007-02-26 00:52
    Right, I discovered this; works great.

       a := ((c & 1) << 31) + ((c & 4) << 19) +     {
    }        ((c & 8) << 3) + ((c & 1024) >> 5)
    
    



    Another trick to use is whenever you *intend* to use
    the >= operator (which is *not* greater than or equals),
    instead type > = (note the space). This way you can
    scan your code and if any ">=" exist, you know you
    messed up and probably meant => instead (the Spin
    greater or equals). Ditto for <=; use < = instead.
  • LucidGuppyLucidGuppy Posts: 32
    edited 2007-02-26 04:01
    Thanks alot guys - it will make my overly complicated if-conditions look easier to read. cool.gif
Sign In or Register to comment.