Skip to content
This repository has been archived by the owner on Dec 12, 2024. It is now read-only.

feat: new page for functions #281

Closed
wants to merge 1 commit into from

Conversation

novusnota
Copy link
Member

@novusnota novusnota commented Jun 26, 2024

WIP: WIP

Closes tact-lang/tact#888

@anton-trunov
Copy link
Member

Any progress here?

1 similar comment
@anton-trunov
Copy link
Member

Any progress here?

@anton-trunov
Copy link
Member

we need this page asap, especially with enhanced section on native functions showing how to FFI with FunC

@anton-trunov
Copy link
Member

for instance, here is an example of a binding for FunC's parse_std_addr function:

;; FunC
(int, int) parse_std_addr(slice s) asm "REWRITESTDADDR";
// Tact
struct Addr {
    workchain: Int;
    address: Int;
}

@name(parse_std_addr)
native parseStdAddr(s: Slice): Addr;

(caveat emptor: I haven't tested it)

@anton-trunov
Copy link
Member

Any progress here?

@novusnota
Copy link
Member Author

novusnota commented Oct 1, 2024

Closed in favor of opening a new PR in https://github.com/tact-lang/tact

The commits here should be kept for a while, so the branch must not be deleted!

@novusnota novusnota closed this Oct 1, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Revamp of Functions page and related pages
2 participants