The concept of a copy-on-write string really only makes sense in a
language like C++, where classes are copied implicitely all the time.
In a reference counted language, the kinds of copies that make naive
std::string implementations so suboptimal, are already solved by the
structure of the langua
On Wed, 2008-08-20 at 15:10 -0400, Yu Feng wrote:
> Dear Devs,
>
> Is there any particular reason that GLib doesn't provide a ref-counted
> string and a ref-counted array type? Lacking them in GLib makes the VALA
> language a real pain.
>
> Is it possible to introduce them in the next major ABI b
Lieven van der Heide wrote:
> Well, isn't the whole point of scrollbars to be able to scroll to
> stuff that's otherwise hidden (behind something else)? I don't see why
> it would be a problem to show a piece of the content that would
> otherwise be hidden at all. As long as scrolling to the sides
On Thu, 2008-08-21 at 12:18 +0200, Mikkel Kamstrup Erlandsen wrote:
> 2008/8/21 Yu Feng <[EMAIL PROTECTED]>:
> > On Wed, 2008-08-20 at 17:59 -0400, Havoc Pennington wrote:
> >> Hi,
> >>
> >> On Wed, Aug 20, 2008 at 3:10 PM, Yu Feng <[EMAIL PROTECTED]> wrote:
> >> > Is there any particular reason th
2008/8/20 Ali Sabil <[EMAIL PROTECTED]>:
> On Wed, Aug 20, 2008 at 9:15 PM, Bastien Nocera <[EMAIL PROTECTED]> wrote:
>> On Wed, 2008-08-20 at 15:10 -0400, Yu Feng wrote:
>> > Is there any particular reason that GLib doesn't provide a ref-counted
>> > string and a ref-counted array type? Lacking th
On Thu, 2008-08-21 at 12:18 +0200, Mikkel Kamstrup Erlandsen wrote:
> 2008/8/21 Yu Feng <[EMAIL PROTECTED]>:
> > On Wed, 2008-08-20 at 17:59 -0400, Havoc Pennington wrote:
> >> Hi,
> >>
> >> On Wed, Aug 20, 2008 at 3:10 PM, Yu Feng <[EMAIL PROTECTED]> wrote:
> >> > Is there any particular reason th
On Thu, 2008-08-21 at 07:57 +0200, Ali Sabil wrote:
>
>
>
> First, it is very difficult to manage a string without a
> reference
> count. The current vala implementation is to assume that
> strings are
> immutable, and to copy the strings
On Wed, Aug 20, 2008, Colin Walters wrote:
> Another nail in the no-libvala idea's coffin is that it seems to me[1]
> it's a violation of the GPL to distribute code that doesn't build
> using the "preferred form of the work for making modifications to it"
> (GPL sec 3). In other words, generated .
2008/8/21 Yu Feng <[EMAIL PROTECTED]>:
> On Wed, 2008-08-20 at 17:59 -0400, Havoc Pennington wrote:
>> Hi,
>>
>> On Wed, Aug 20, 2008 at 3:10 PM, Yu Feng <[EMAIL PROTECTED]> wrote:
>> > Is there any particular reason that GLib doesn't provide a ref-counted
>> > string and a ref-counted array type?