hendrik at topoi.pooq.com
Tue Jan 10 11:31:46 EST 2012
On Mon, 09 Jan 2012 16:17:02 -0500, Derek Atkins wrote:
> Hendrik Boom <hendrik at topoi.pooq.com> writes:
>>> I thought you were working on learning to script Gnucash with Guile.
>> In part, yes. But I'm really trying to learn to write an introduction
>> for people who want to learn to script Gnucash with Guile.
> True, and from a user perspective xaccAccountEqual() is the API way to
> test whether two account objects point to the same Account. Just
> testing for acc1 == acc2 may work in some cases,
My question was prompted by my surprise that tere were such cases.
> and I believe that
> xaccAccountEqual() does have that short-circuit in there. But users
> should use the API.
> This isn't C++. If it were then yes, we could have overridden the '=='
> operator to do a deep-inspection compare if the pointers are different.
And I'm happy that you didn't override ==. That would be confusing.
> But because this is C we had to write our own API and ask users to use
More information about the gnucash-devel