in reply to Re: Semicolon terminating paren-less call to 'opendir' triggers a bogus warning
in thread Semicolon terminating paren-less call to 'opendir' triggers a bogus warning

Why doesn't the first example give the same warning? The only difference that I see is the semicolon.
Bill
  • Comment on Re^2: Semicolon terminating paren-less call to 'opendir' triggers a bogus warning

Replies are listed 'Best First'.
Re^3: Semicolon terminating paren-less call to 'opendir' triggers a bogus warning
by LanX (Saint) on Sep 08, 2023 at 07:12 UTC
    You are right, it's only the semicolon.

    The parser is full of heuristics trying to DWIM ambiguities.

    So probably that's one of the side effects, when the code ends abruptly. 🤷‍♂️

    Cheers Rolf
    (addicted to the 𐍀𐌴𐍂𐌻 Programming Language :)
    Wikisyntax for the Monastery