Notice. New forum software under development. It's going to miss a few functions and look a bit ugly for a while, but I'm working on it full time now as the old forum was too unstable. Couple days, all good. If you notice any issues, please contact me.
|
Forum Index : Microcontroller and PC projects : PicoMite: C-style multi-line comments
Author | Message | ||||
thwill Guru Joined: 16/09/2019 Location: United KingdomPosts: 4037 |
Hi folks, I've been faffing around looking at differences between MMBasic on the PicoMite and MMB4L and have the strong suspicion that the former's /* */ comments are a misfeature and unless someone shouts loudly it may make sense to remove this support. My main issue with them is that unless I am mistaken whilst they look like C comments they don't behave like them, e.g. /* is a command and it is thus an error if you try to start a multi-line comment part way through an MMBasic statement. As a result I don't think they offer any more power than a simple IF 0 THEN ... ENDIF construct ? Now I'm sure the behaviour could be "fixed", though on the PicoMite it isn't completely trivial because you need to keep the comments in the tokenized form (not necessary in MMB4L) ... but I'm not sure it is worth the effort! What I think would be more useful is an extension of the EDITor with keyboard short-cuts to comment/uncomment (with ') multiple selected lines, though even there the utility might be limited because IIRC you can only have relatively few lines selected at a time, or was that a limitation of the CMM1 or 2 ? As ever YMMV, Tom Edited 2024-03-21 17:37 by thwill Game*Mite, CMM2 Welcome Tape, Creaky old text adventures |
||||
Print this page |