User forums > Using Code::Blocks

Editor Bug

<< < (2/4) > >>

takeshimiya:

--- Quote from: mandrav on October 19, 2006, 05:46:47 pm ---I 've been in a similar situation myself.
The easiest thing I can think of to fix this, is to remove $VAR syntax from being a variable. Currently, all the below forms are treated equivalently:

$VAR
$(VAR)
${VAR}
%VAR%

The problem is that although I never use the $VAR form myself, there may be others that do. So while that would solve your problem, it might make things uncomfortable for others.

--- End quote ---
Four variations of the syntax to declare a variable is a plus on flexibility but a loss on consistency and more important, unexpected behaviors, for example I didn't knew the %VAR% syntax and it will be replaced.
For me, the best thing would be to use only one syntax, either $(VAR) or ${VAR}.



--- Quote from: mandrav on October 19, 2006, 05:46:47 pm ---Another fix that crossed my mind while I was writing this, is to alter the MacrosManager to not substitute unknown macros. So if there is no macro $VAR defined, then no substitution takes place. Any thoughts from other developers on this?

--- End quote ---
I can think both scenarios where one might want one behavior or another, but this doesn't means anything.

thomas:
Takeshi is right, we should only use one syntax for consistency, and render 75% of the exising projects useless. Sounds like a good plan to me.

I vote for ${VAR} on western European keybords because $(VAR) is far too easy to type, we don't want it to happen accidentially! For US layouts, we'll have to think of something more complicated.

tiwag:
i vote for
--- Code: ---$(VAR)
--- End code ---


 :P

takeshimiya:

--- Quote from: thomas on October 19, 2006, 07:56:07 pm ---Takeshi is right, we should only use one syntax for consistency, and render 75% of the exising projects useless.

--- End quote ---
NO!

Only for projects minor > "5" version. Else it will render 45% of the exising projects useless.

I vote for
--- Quote ---$(VAR)
--- End quote ---
too :twisted:

sethjackson:
I vote for $(VAR) too......

Navigation

[0] Message Index

[#] Next page

[*] Previous page

Go to full version