nikhilgupta10 / GridLAB-D

Other
1 stars 0 forks source link

#630 #if tests always expand the first parameter even when no $ is used, #2373

Open nikhilgupta10 opened 8 years ago

nikhilgupta10 commented 8 years ago

This is a legacy of V1 macro processing but it is very inconsistent with parameter expansion in all other parts of the loader. We should consider changing this in V3 to require use of ${} in the expression when variable substitution is expected and make the comparison strictly lexical.

This would also require the use of variable to allow backward compatibility by default with a warning message that this will be deprecated in a future version.

,

nikhilgupta10 commented 8 years ago

nikhilgupta10 imported these comments from Sourceforge: The user dchassin does not exist anymore. Therefore assigning this to afisher1. "dchassin": * status changed from new to accepted ,

"dchassin": * status changed from accepted to assigned ,

"dchassin": * status changed from assigned to accepted ,

"dchassin": * owner changed from dchassin to andyfisher

Fixed in r4029. Also fixed bad routing of #print, #error and #warning output from loader.

,

"dchassin":This appears not to be in trunk yet.,

"dchassin":If this isn't going to be included until 4.0 (which is reasonable), then we should at least fix the problem where the macro doesn't parse variable name that have period in them. As a result it's impossible to test the GridLAB-D version number in the GLM file, which is very useful.,

"andyfisher":- Description has changed:

Diff: