Code review comment for lp:~epics-core/epics-base/link-support-2

Revision history for this message
Andrew Johnson (anj) wrote :

One thing I realized earlier that I want to be possible at some point: The JSON link parsing code and operations must be re-entrant and designed so a link can embed other links if it wants to. Here's one possibility that should allow:

record(ai, "current") {
  field(DTYP, "some-psu")
  field(INP, "#C0 S0 @whatever")
  field(SIML, "simulate")
  field(SIOL, {calc:{
    expr:"(val+a/b)/2",
    in:[{ca:"voltage CP"}, 10e3]
  }})
}

I'm not saying the implementation will support this to start with, but I want to bear the use-case in mind so as not to preclude its addition in the future. This comment is here to remind me...

« Back to merge proposal