User forums > Using Code::Blocks
Editor Bug
thomas:
While we are at it: Considering that '#' is a perfectly legal character in an URL and Code::Blocks can operate on URLs, we should use a different symbol for gcvs too. Maybe '!' or 'ß'.
That way, we can render a lot more projects useless than by removing 3/4 of the variable syntax. :)
takeshimiya:
While trying to ignore plain non-sense:
As first-post says, it's very common to use $Variable: $ in RCS headers, I use them always with SVN, good that I didn't use C::B abbreviations.
And again: only for projects minor > "5" version.
It seems I was wrong with the 45% figure, it's 20% :mrgreen:
thomas:
--- Quote from: Takeshi Miya on October 19, 2006, 08:57:58 pm ---While trying to ignore plain non-sense
--- End quote ---
Yes, most of us try to do that most of the time, Takeshi.
Instead of leaving out something that people are used to and have indeed been using in projects, the correct solution would be to make it work, in other words find out why and when the same string is expanded multiple times. It is not only the reason why escaping doesn't work, it is also needlessly inefficient.
It is perfectly acceptable to type $$Author$, or more consistently $$Author$$ to get the desired output, as having plain $s is the exception, not the rule, both in compiler options and in abbrevations.
takeshimiya:
--- Quote from: thomas on October 19, 2006, 09:08:28 pm ---Instead of leaving out something that people are used to and have indeed been using in projects, the correct solution would be to make it work,
--- End quote ---
Yes, it can be made it to work, and that could solve the problem you're referring.
But I'm talking about another different problem: I don't have anything against the syntax $(var), and ${var} because they are strict enough for not having false positives, however the %sometext% syntax is not strict enough but not really a problem; the problem comes with the $Var syntax, because it's very non-strict, it doesn't have a terminator token and it's very easy to have false positives.
Perhaps yes, this is something that should have been discussed when the other syntax got introduced; but Code::Blocks projects are serializable. =P
--- Quote from: thomas on October 19, 2006, 09:08:28 pm ---It is perfectly acceptable to type $$Author$, or more consistently $$Author$$
--- End quote ---
Well that is what I'm talking about when I say that syntax is very non-strict.
thomas:
--- Quote from: Takeshi Miya on October 19, 2006, 09:31:24 pm ---however the %sometext% syntax is not strict enough [...]
Perhaps yes, this is something that should have been discussed when the other syntax got introduced
--- End quote ---
As usual, you are discussing about vain things.
First, there is a good reason why the %VAR% syntax exists. It is the Windows/DOS syntax for environment variables, and as such it is what many Windows devs are probably using (as it is the natural thing to do for them).
Second, this syntax existed well before the macros manager was redesigned and well before anything else, for that matter (revision 521).
People are used to this syntax and without any doubt, many people have been using it for literally years. Taking away something that a user has become used to for such a long time is problematic at best.
Navigation
[0] Message Index
[#] Next page
[*] Previous page
Go to full version