Commenting in a "coll" file
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?
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.
Thanks!
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.
@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
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).
Something like this maybe?
_
johan
If you copy the commented coll into an uncommented, next and nth would work:
Good idea!