Using ## as a comment indicator

This is the place to get help and information about lcTaskList

Moderators: heatherlaine, kevinmiller, robinmiller, bvlahos

Post Reply
marksmithhfx
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 931
Joined: Thu Nov 13, 2008 6:48 am
Location: London, UK

Using ## as a comment indicator

Post by marksmithhfx » Fri Aug 24, 2012 4:11 am

Hi Bill, looks like I got started using ## as a comment indicator somewhere along the way (similar to the way -- and // are usually paired). Any chance lcTaskList could have that specified as an option?

Thanks

-- Mark
macOS 12.6.5 (Monterey), Xcode 14.2, LC 10.0.0, iOS 15.6.1
Targets: Mac, iOS

bvlahos
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 78
Joined: Tue May 01, 2012 1:52 am

Re: Using ## as a comment indicator

Post by bvlahos » Fri Aug 24, 2012 8:22 am

The LiveCode standard for the pound sign is only one. The other symbols "--" and "//" are in pairs.

Essentially you are making the extra pound sign part of the comment. I could make the change but I'll have to think about any unintended consequences of non-standard comments.

shaosean
Posts: 906
Joined: Thu Nov 04, 2010 7:53 am

Re: Using ## as a comment indicator

Post by shaosean » Fri Aug 24, 2012 11:16 am

Does not support /* */ type comments either, and those are standard ;-)

bvlahos
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 78
Joined: Tue May 01, 2012 1:52 am

Re: Using ## as a comment indicator

Post by bvlahos » Sat Aug 25, 2012 4:12 pm

True but I don't think it makes sense to do it in the comment block. In the example below I would have to keep track of any of the index words inside the entire block.

/*
This is the comment block
MARK the text in a comment
*/

I could add /* and */ but the index words would have to be right after. Example: /*MARK

Indexing the word inside the block would be difficult.

Let me know if it makes sense to index inside the comment block. It doesn't to me because you could do.

/*
This is the comment block
--MARK the text in a comment
*/

shaosean
Posts: 906
Joined: Thu Nov 04, 2010 7:53 am

Re: Using ## as a comment indicator

Post by shaosean » Mon Aug 27, 2012 2:22 am

I was actually just being a pain in the butt :-P

Post Reply

Return to “lcTaskList”