Shop OBEX P1 Docs P2 Docs Learn Events
How to cope with huge lists of variables passed in method calls, etc. — Parallax Forums

How to cope with huge lists of variables passed in method calls, etc.

ElectricAyeElectricAye Posts: 4,561
edited 2009-05-16 14:07 in Propeller 1
Hi all,

I would like to know if there's a fun and easy way to cope with huge lists of variables that need to be passed in method calls, COGNEW, etc. I like to use very large names for variables and I get a little freaked out by how the Propeller's program editor just keeps stringing the list out toward infinity. Is there some kind of wrap-around character I can use in the editor to tidy up the appearance of the code?

much obliged,
Mark

smile.gif

y'all have a great weekend!

▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Watching the world pass me by, one photon at a time.

Comments

  • Phil Pilgrim (PhiPi)Phil Pilgrim (PhiPi) Posts: 23,514
    edited 2009-05-15 20:16
    Yes. To continue a line, put a { at the end and a } at the beginning of the continuation line. This effectively comments out the terminating carriage return. (I can't take credit for this trick, but I also can't remember who first came up with it.)

    -Phil
  • ElectricAyeElectricAye Posts: 4,561
    edited 2009-05-15 21:35
    Hey, that's great! You just earned yourself an excellent weekend!

    thanks a bunch!

    smile.gifsmile.gifsmile.gifsmile.gifsmile.gif
  • simonlsimonl Posts: 866
    edited 2009-05-15 23:08
    Y' learn something new every day! I too have been wanting this - many thanks Phil (and whoever Phil got it from) smile.gif

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    Cheers,
    Simon

    www.norfolkhelicopterclub.com

    “Before you criticize someone, you should walk a mile in their shoes. That way when you criticize them, you are a mile away from them and you have their shoes.” - Jack Handey.
  • virtuPICvirtuPIC Posts: 193
    edited 2009-05-16 05:19
    Phil, this is great! Another strange feature of a programming language...

    Really enjoy your weekend! You've earned it indeed.

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    Airspace V - international hangar flying!
    www.airspace-v.com/ggadgets for tools & toys
  • Phil Pilgrim (PhiPi)Phil Pilgrim (PhiPi) Posts: 23,514
    edited 2009-05-16 06:19
    I'm just the messenger. Further searching turned up Tom Rokicki as the originator of this brilliant tactic.

    -Phil
  • ElectricAyeElectricAye Posts: 4,561
    edited 2009-05-16 14:07
    Phil Pilgrim (PhiPi) said...
    I'm just the messenger. Further searching turned up Tom Rokicki as the originator of this brilliant tactic.

    -Phil

    Then let us carve his likeness from stone and drive bus loads of virgin supermodels to his front door. He deserves our worship.

    So much suffering he has relieved from us!


    smile.gif
Sign In or Register to comment.