Re: Lacking of a ref-counted string.

2008-08-21 Thread Lieven van der Heide
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

Re: Lacking of a ref-counted string.

2008-08-21 Thread Alexander Larsson
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

Re: Translucent Scrollbars

2008-08-21 Thread Michael Torrie
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

Re: Lacking of a ref-counted string.

2008-08-21 Thread Yu Feng
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

Re: Lacking of a ref-counted string.

2008-08-21 Thread jcupitt
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

Re: Lacking of a ref-counted string.

2008-08-21 Thread Yu Feng
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

Re: Lacking of a ref-counted string.

2008-08-21 Thread Yu Feng
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

Re: Lacking of a ref-counted string.

2008-08-21 Thread Loïc Minier
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 .

Re: Lacking of a ref-counted string.

2008-08-21 Thread Mikkel Kamstrup Erlandsen
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?