Re: {.nimcall.} and {.closure.}

2020-03-26 Thread thenjip
I found the link by using Ctrl+F when browsing the manual. The integrated search engine is to search the API.

Re: {.nimcall.} and {.closure.}

2020-03-25 Thread solo989
Find at the top of the manual page only gives you proc/template/macro/etc headers. I barely ever use it. Try searching the webpage manually using the the find shortcut built into your web browser.

Re: {.nimcall.} and {.closure.}

2020-03-25 Thread Pixeye
Thanks, guys :) That really helps me to understand the FULL POWA behind the lang XD Few things came to my mind. 1) Why I can choose only 1 person to reply on the forum? I wanted to add @doofenstein as well to the reply but this is not allowed. This makes me sad :( 2) How to use the Nim manual e

Re: {.nimcall.} and {.closure.}

2020-03-25 Thread doofenstein
to call a function it is necessary to know how (e.g. how should the parameters or the return value be transfered). This is what's called a calling convention. In practice you don't have to worry about this much, except when interfacing C or when dealing with closures like here. A reference to a

Re: {.nimcall.} and {.closure.}

2020-03-25 Thread thenjip
Hello, > could anyone please tell me in a simple language what does .closure. means > and how it affected with .nimcall. ? Sure thing ! Here is a [link](https://nim-lang.org/docs/manual.html#types-procedural-type) the part of the language manual that talks about this topic. In case you could

{.nimcall.} and {.closure.}

2020-03-25 Thread Pixeye
Hi everyone! I feel so stupid right now, could anyone please tell me in a simple language what does .closure. means and how it affected with .nimcall. ? : ) I EAGER TO KNOW MORE : ) import actors {.experimental: "codeReordering".} app.settings.name = "Platypus" ap