type: variety, ilk, sort, genre method: httpMethod, if non specific: mo (modus
operandi)
`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
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
Backticks work:
type
O = object
`method`*: string
let o = O(`method`:"hello world")
echo o.`method`
Run
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. ;)
I order the book and will be waiting for delivery :) thank you Araq and all
conftrib. for creating and maintaining nim
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.
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.
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