This is the mail archive of the guile@cygnus.com mailing list for the guile project.
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |
Jim Blandy <jimb@red-bean.com> writes: > > > Does this sound appropriate? > > > > I like this. But I have developed a habit lately: whenever I see a > > pair of create/free functions I immediatly lobby for adding reference > > counting (at least) to the interface. > > Eeeewwwww. > > Actually, would it suffice to just take out another lease on the > object? Yes, that would be the same thing as incrementing the reference count of one lease. But I think we should supply this operation in a well packaged way. So it's mostly about the choice of names for these functions I think. We have functions to create a lease, to duplicate a lease and to return a lease. We can call the latter two ref/unref or give them more tasty names, of course. Hmm, but isn't there a difference between duplicating a lease and merely addiung a reference to it when the lease has a copy of the original vector? A duplicated lease would have to have another copy then, right?