Skip to content
GitLab
Projects Groups Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in / Register
  • openfoam openfoam
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 426
    • Issues 426
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 9
    • Merge requests 9
  • Deployments
    • Deployments
    • Releases
  • Wiki
    • Wiki
  • Activity
  • Graph
  • Create a new issue
  • Commits
  • Issue Boards
Collapse sidebar
  • Development
  • openfoamopenfoam
  • Issues
  • #429
Closed
Open
Issue created Mar 16, 2017 by Mark OLESEN@markMaintainer

Support dictionary scoping as lvalue

Currently can use ${:subdict.name} as rvalue substitution - using the : to denote an absolute location, but it is not possible to use this type of notation as a lvalue. For example :subdict.name as a name, since : is a punctuation token. It might be possible to add additional quoting etc, but could also make sense just to allow another character for denoting an absolute location. I would propose allowing ^ as an absolute position anchor. This is a one-line change in dictionary::lookupScopedEntryPtr()

if (keyword[0] == ':' || keyword[0] == '^')

Once this is in place, I could rework the removeEntry function entry to handle scoped names and eliminate the current restriction:

The removal only occurs in the current context. Removing sub-entries or parent entries is not supported.

@andy @Mattijs

Assignee
Assign to
Time tracking