Skip to content

words with lest or unless flow control may not be inlined #17

Description

@Bushmills

both lest and unless compile conditional exits, which break out of the function lest or unless were compiled into. When that code gets inlined into another word, it will exit from that word instead, rather than only from the word which was originally within lest or unless scope. For words having exitcompiled into (translated into a return from function), same applies.

workaround for now: don't mark words containing lest, unless or exit with inline.
fix thought of: lest, unless, exit mark the word as "may not inline", which is checked by inline, Upon attempt to tag such a word as inline, an error is thrown.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions