If imported name conflicts with Nim keyword, what would you call it?

2022-06-28 Thread ingo
type: variety, ilk, sort, genre method: httpMethod, if non specific: mo (modus operandi)

How to pass int pointer to C?

2022-06-28 Thread ElegantBeef
`ptr cint` or `var cint` depending on what the API describes. If it's supposed to be just "int passed as reference" `var cint` is better, if it's supposed to be "some safely allocated integer" than `ptr cint` is better. For `ptr cint` you need to do `myint.addr` if you want to pass a stack allo

How to pass int pointer to C?

2022-06-28 Thread matthesoundman
Hello, I consider myself a newish nim programmer with some success and some failures. I had yet to dabble in the FFI and started tinkering around with it. I have an external `.dylib` and its corresponding `.h`. I am attempting to test out calling from `nim`. I think everything has been going ok

If imported name conflicts with Nim keyword, what would you call it?

2022-06-28 Thread deech
Backticks work: type O = object `method`*: string let o = O(`method`:"hello world") echo o.`method` Run

Mastering Nim: A complete guide to the programming language

2022-06-28 Thread phargob
I have it on my desk. I might just disconnect myself from the internet and work through the book cover to cover (plus I am relative Nim noobie). Reminds of the days of my first programming job with no internet, nothing but K&R and QNX4 manuals on the desk and ... actually getting stuff done. ;)

Mastering Nim: A complete guide to the programming language

2022-06-28 Thread foxoman
I order the book and will be waiting for delivery :) thank you Araq and all conftrib. for creating and maintaining nim

Mastering Nim: A complete guide to the programming language

2022-06-28 Thread jasonfi
The original price still shows as $60, so it's offered at a discount now. I see the table of contents is also available if you click on the cover preview image.

Mastering Nim: A complete guide to the programming language

2022-06-28 Thread cumulonimbus
I have just ordered the book from amazon.com , and was charged $40 , not over $60 ; Not sure when the price was changed, but might be easier for some to buy now.

Mastering Nim: A complete guide to the programming language

2022-06-28 Thread blashyrk92
Would love to get it, however as someone from a European country which is not in the European Union, the price w/ shipping and import taxes is close to 150 euros which is a bit insane :) So I hope there will be an e-book version at some point