Y
Hacker News
new
|
ask
|
show
|
jobs
by
combatentropy
2851 days ago
I was wondering why the API makes you write transaction twice:
transaction->begin(transaction)
Why not:
transaction->begin()
2 comments
glenda
2851 days ago
It looks like transaction is just a C struct with function pointer fields, not an actual C++ class, so there is no implicit `this` argument.
link
vyodaiken
2851 days ago
no "self" in C.
link