Menu

#27 Block Diagrams: Copying a template

closed
block (7)
5
2018-08-21
2018-08-12
No

Hi,

I'm enjoying using msc-generator for sequence chart, and now starting to use it for block diagrams.

I see that templates can be used to simplify the reuse of blocks.
I wondering if templates can be copied as templates, like in the following simplified example:

template box Struct {
    box A;
    box B;
    A <-> B;
}

/*template*/ copy Struct as ReverseStruct {
    move A;
}

copy Struct as First;
copy ReverseStruct as Second;

The usage of "template" keywork before the "copy" keyword gives a syntax error.
I also tried the syntax "copy Struct as template ReverseStruct" for no use.

Is there another way for hiding ReverseStruct?

Many thanks for this great program,
Yehoshua

Discussion

  • Zoltán Turányi

    • labels: --> block
    • status: open --> accepted
    • assigned_to: Zoltán Turányi
    • Group: Indefinite --> Next_Release_(example)
     
  • Zoltán Turányi

    I will add this feature when I get to it.

     
  • Zoltán Turányi

    • status: accepted --> closed
     
  • Zoltán Turányi

    If all goes well, it will be included in the 6.3.5 release later today.

     
MongoDB Logo MongoDB