• MPL MENUCMD with 'GO'

    From Lee Westlake@2:250/6 to All on Monday, July 11, 2022 17:47:48
    Hi All,

    Quick question regarding the MENUCMD command in MPL:

    If I use this command in order to goto (rather than gosub) a menu, can I assume that Mystic will automatically destroy the context in which the script is running?

    In others words, as the menu has no path back to script (or perhaps it does?), can I assume that Mystic won't leave a zombied script behind?

    As always, all advice gratefully received.

    ===============================================================
    TALIADON (Lee Westlake) | TALIADON BBS (taliadon.ddns.net:23)
    FidoNet: 2:250/6 | fsxNet: 21:3/138 | tqwNet: 1337:1/116 ===============================================================

    --- Mystic BBS v1.12 A47 2021/12/24 (Linux/64)
    * Origin: TALIADON BBS (2:250/6)
  • From Lee Westlake@2:250/6 to Lee Westlake on Monday, July 11, 2022 20:32:54
    Hi All,

    Quick question regarding the MENUCMD command in MPL:

    If I use this command in order to goto (rather than gosub) a menu, can I assume that Mystic will automatically destroy the context in which the script is running?

    In others words, as the menu has no path back to script (or perhaps it does?), can I assume that Mystic won't leave a zombied script behind?

    Not worry.

    Mystic doesn't appear to honour 'GO' from inside an MPL script (probably for good reason), so this question is somewhat moot.

    ===============================================================
    TALIADON (Lee Westlake) | TALIADON BBS (taliadon.ddns.net:23)
    FidoNet: 2:250/6 | fsxNet: 21:3/138 | tqwNet: 1337:1/116 ===============================================================

    --- Mystic BBS v1.12 A47 2021/12/24 (Linux/64)
    * Origin: TALIADON BBS (2:250/6)
  • From g00r00@1:129/215 to Lee Westlake on Monday, July 11, 2022 16:06:32
    Hi All,

    Quick question regarding the MENUCMD command in MPL:

    If I use this command in order to goto (rather than gosub) a menu, can I assume that Mystic will automatically destroy the context in which the script is running?

    Mystic will not switch menus until you exit the script on your own.

    So if you have a simple MPL like:

    Begin
    MenuCmd ('GO', 'main');
    WriteLn ('Hello! |PA');
    End.

    Mystic *will* honor the GO command, but it will not take you to the main.mnu until after the script, so you'll see the Hello and the screen pause then it will load main after exiting.

    ... Shortcut: longest distance between two points

    --- Mystic BBS v1.12 A48 2022/07/11 (Windows/64)
    * Origin: Sector 7 * Mystic WHQ (1:129/215)