Skip to content
This repository was archived by the owner on Jan 27, 2021. It is now read-only.
This repository was archived by the owner on Jan 27, 2021. It is now read-only.

Can NativeProcedure.Create also process Action<>? #15

@axtens

Description

@axtens

Currently doing

            Interpreter.CreateSymbolTableDelegate extension = itpr =>
            {
                return new Dictionary<Symbol, object>
                {
                    [Symbol.FromString("exit")] = NativeProcedure.Create<int>(Exit,"exit"),
                };
            };

where Exit is defined as

        private static int Exit()
        {
            System.Environment.Exit(1);
            return 1;
        }

Would be nicer to be able to specify System.Environment.Exit in the .Create

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions