Skip to content

Error defining own native funciton #5

@egordorichev

Description

@egordorichev

Hi!
I want to define my own native function printh, that calls lua native print:

table.insert(_TBASIC._FNCTION, "PRINTH")
_TBASIC.LUAFN.PRINTH = { print, 1 }
10 PRINTH("HELLO, WORLD")

?L10: SYNTAX ERROR

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