Размер видео: 1280 X 720853 X 480640 X 360
Показать панель управления
Автовоспроизведение
Автоповтор
Great Video ! Just one nitpick, your `str` that is in global scope is not stack allocated, it's in the data section and compiled with your program :D
@@anub-e9y lol, you're right. It's in .data lol
Thanks for the video. Tell me, please, is there a closure function and a lambda function in the zig?
I don't think that would be too useful, but this link might help you as wellziggit.dev/t/anonymous-functions-lambdas/1087
Well, not exactly. You can pass functions as values, using either a function pointer (* const fn(...) ...) or a function body (fn(...) ...). I am not sure if they capture their environment though.
Good stuff. Y why don’t u just defer the freeing of the allocation why are you init it with _ ?
I've used to use that. Probably older versions was wanting it?
Great Video ! Just one nitpick, your `str` that is in global scope is not stack allocated, it's in the data section and compiled with your program :D
@@anub-e9y lol, you're right. It's in .data lol
Thanks for the video. Tell me, please, is there a closure function and a lambda function in the zig?
I don't think that would be too useful, but this link might help you as well
ziggit.dev/t/anonymous-functions-lambdas/1087
Well, not exactly. You can pass functions as values, using either a function pointer (* const fn(...) ...) or a function body (fn(...) ...). I am not sure if they capture their environment though.
Good stuff. Y why don’t u just defer the freeing of the allocation why are you init it with _ ?
I've used to use that. Probably older versions was wanting it?