Commenting in a "coll" file


    Feb 05 2010 | 3:08 pm
    What is the syntax for adding a comment in a "coll" file. I've tried a couple different commenting styles but no luck, or is there even a way to comment in them?

    • Feb 05 2010 | 3:20 pm
      It depends on how you use your coll.
      If you use it as an associative array, you could insert lines like:
      comment, this is a comment;
      But if you read it with nth, next, etc., then I'm afraid there is no way.
    • Feb 05 2010 | 3:45 pm
      Thanks!
    • Feb 05 2010 | 4:14 pm
      Of course you could just prepend any line you want to comment with for instance // and then use route at the outlet of the coll object.
    • Feb 05 2010 | 4:38 pm
      @Florito.
      But this won't work with nth, next, etc. neither as the comments will count in the index. Of course, you could imagine a procedure like: if I send a next and receive a comment , then let's send another next until I receive real datas. But I don't think it is really elegant nor efficient...
      p
    • Feb 08 2010 | 10:22 am
      Hmm I think I'd keep a separate coll for comments, so you just have 1 comment per index. Unless you store your data like in an array, then you could have 1, item1 item2 item3 comment; every line (but you need to put in all the values at all times).
    • Feb 08 2010 | 11:59 am
      Something like this maybe?
      _ johan
    • Feb 08 2010 | 12:20 pm
      If you copy the commented coll into an uncommented, next and nth would work:
    • Feb 08 2010 | 9:07 pm
      Good idea!