Can an alias be used to define a new anchor?
Bartek Grychtol <[email protected]>
| Newsgroups | gmane.text.yaml.general |
|---|---|
| Message-ID | <CAPiZYx0dA=nMdOSRme1Jdex+jDJYP3CWB1pGctjUwNjh4VRBzw@mail.gmail.com> |
Hello List, I'm new to YAML, which we're using in a project via yaml-cpp. I stumpled into an issue which I don't know if it's a bug in yaml-cpp or a feature of the spec. I consulted the spec but left no wiser. I wanted to write a node like this: --- Images: one: size_x: &ONE_SIZE 100 two: size_x: &TWO_SIZE *ONE_SIZE That is, I was hoping to use an alias to define a new anchor. The motivation is that *TWO_SIZE is used lower down independently of *ONE_SIZE, yet they are sometimes, but not always, one and the same thing. yaml-cpp refuses to parse this. Is it legal YAML? Thanks in advance! Bartek ------------------------------------------------------------------------------ Want excitement? Manually upgrade your production database. When you want reliability, choose Perforce. Perforce version control. Predictably reliable. http://pubads.g.doubleclick.net/gampad/clk?id=157508191&iu=/4140/ostg.clktrk _______________________________________________ Yaml-core mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/yaml-core