Is there a built-in way to exponentiate numbers in FunC? If there isn't and it is up to developer to write a function, probably the community has already wri...
Suppose we check for two conditions at the same time: if( (a == b) & (b == c) ). If a is not equal to b, that makes the first condition false. And that means...
2 years ago
I found a strange behavior in func bitwise operation. I don't understand why. slice slice0 = begin_cell().store_coins(123).end_cell().begin_parse(); int resu...
How is a reference serialized (stored)? --- > This question was imported from Telegram Chat: https://t.me/tondev_eng/9475
Do I get it right that if my smart contract needs to store a string longer than 1023 bits, I should split that thing in parts and make a chain of cells conta...
I have function like this: clike () save_data_on_update(slice destination_address) impure inline { builder q = begin_cell(); builder qSliceDestinationAddress...
Follow the docs there:https://ton.org/docs/develop/func/overview back by the code: () send_money(slice address, int amount) impure inline { var msg = begin_c...
In TON, messages are used to send data and instructions to smart contracts. Sometimes, these messages can contain large amounts of data such as media files, ...
2 years ago
Is it possible to call a function in a recursive way in FunC? If so, how exactly should I do it? I haven't found it in the FunC documentation, is it covered ...
What would be your suggestions on some basic pet projects for studying main concepts of ton? These would be smart contracts to write immidiately after doing ...
Hello everyone, please explain: ```` () send_message_back(addr, ans_tag, query_id, body, grams, mode) impure inline_ref { ;; int_msg_info$0 ihr_disabled:Bool...
2 years ago
For some reason I can't parse commentary that I receive in a transaction. This commentary is specified when sending ton coins from a wallet to a smart contra...
It looks like Message X is almost the same as MessageAny. What is the difference? --- > This question was imported from Telegram Chat: https://t.me/tondev_en...
In modular arithmetic there is such a thing as modular multiplication. Does it have a built-in support in FunC? --- > This question was imported from Telegra...
one year ago
How can I print out something in FunC? https://t.me/tondev_eng/9305
2 years ago
FunC language evolves and gets new versions. But there seems to be no release notes for those versions on the TON website and FunC doesn't have its own websi...
Hi, I transferred my TG NFT username to another wallet, but the transfer has not happened yet. The transaction generated exit code 206. Is this normal? Can s...
2 years ago
There are extensions for code editors like Visual Studio Code providing syntax highlighting for FunC. Is there anything like that for the vim editor? --- > T...
In FunC there is a function run_ticktock called in ticktock transactions of special smart contracts. But can such smart contracts work on a basechain, or is ...
Is there any more materials on writing those tests? Since I am just joined the TON ecosytem. As far as I understood, in order to test internal command, tests...
Many programming languages have a ternary operator, such as booleanExpression ? expression1 : expression2 in Java (if booleanExpression equals true, than exp...
Is there a built-in square root function in the language? And if not, maybe there is a popular library with the optimal implementation? --- > This question w...
Do I get it right that there is no implementation of a floating-point numbers type such as float in FunC? --- > This question was imported from Telegram Chat...
I've previously seen tilde symbol used for bitwise NOT in other programming languages, so placing ~ before some X means "not X". But it seems in FunC it work...
2 years ago
In general-purpose languages there often is some form of try. Is there anything like that in FunC I could use to validate data in msg_body? > This question w...
2 years ago
On TON, everything is a cell, and a slice is a cell opened up for reading. But can a slice contain another slice inside? --- > This question was imported fro...
2 years ago
If there are two numbers, like 1100 and 0011, what is the easiest way to "concatenate" them (not adding, but merging into a single number containing all the ...
one year ago
It is probably a silly question, but it is confusing for a newcomer. What is the difference between msg and msg_body, aside from the type difference? --- > T...
2 years ago
I've been trying to do the following using the uncons function, but it doesn't destructure as I expect it to: (var l, var rvalues) = uncons(values); --- > Th...
I use Visual Studio Code with the "FunC Language Support" extension by Whales Corp. This setup is convenient and often helps with the autocompletion in FunC....