+
Skip to content

Automatically generate spec blocks from C++ lambda prototype #28

@hostilefork

Description

@hostilefork

What if there was no block header passed to the function generator? Could we somehow sniff the
types and at compile time generate it?

So for instance:

Function printBlockString = makeFunction(
    REN_STD_FUNCTION,

    [](Block const & blk, String const & str) -> Logic {
         print("blk is", blk);
         print("str is", str);
         return true;
    }
);

Can we somehow make that generate the block needed for the spec?

Essentially, automatically build Block {"arg1 [block!] arg2 [string!]"}

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      点击 这是indexloc提供的php浏览器服务,不要输入任何密码和下载