View Issue Details
ID | Project | Category | View Status | Date Submitted | Last Update |
---|---|---|---|---|---|
0000447 | OpenFOAM | Bug | public | 2012-03-02 21:05 | 2012-03-21 09:13 |
Reporter | Assigned To | ||||
Priority | normal | Severity | feature | Reproducibility | have not tried |
Status | resolved | Resolution | no change required | ||
Summary | 0000447: Provide "=" as another way to write "#calc" in dictionaries. | ||||
Description | I was very glad to see the new #calc directive introduced in 2.1 as a shortcut for #codeStream, allowing great ease of use for run-time code compilation. I have been using it extensively to prepare parametric dictionaries. I think this feature might be even nicer to use if the syntax "=" instead of "#calc" was allowed. That is to say c = "$a/$b"; would mean the same thing as c #calc "$a/$b"; | ||||
Tags | No tags attached. | ||||
|
Interesting idea. However the #calc is a preprocessing directive, i.e. gets evaluated at parsing time. The '=' just gets parsed as another word into the dictionary. Giving '=' another meaning would mean not being able to use it in any context. |
Date Modified | Username | Field | Change |
---|---|---|---|
2012-03-02 21:05 |
|
New Issue | |
2012-03-08 17:44 |
|
Note Added: 0001127 | |
2012-03-21 09:13 |
|
Status | new => resolved |
2012-03-21 09:13 |
|
Fixed in Version | => 2.1.x |
2012-03-21 09:13 |
|
Resolution | open => no change required |
2012-03-21 09:13 |
|
Assigned To | => user4 |