Re: GRegex
- From: Havoc Pennington <hp redhat com>
- To: Murray Cumming <murrayc murrayc com>
- Cc: Marco Barisione <marco www barisione org>, gtk-devel-list gnome org
- Subject: Re: GRegex
- Date: Sat, 28 Oct 2006 14:19:17 -0400
If the regex object is immutable, language bindings can treat it as a
"value object" (like a string or GdkColor or GdkRectangle) even though
it's refcounted for efficiency. Also immutable objects can be shared
among threads without locking.
A GObject on the other hand is never immutable since the GObject base
class has post-construct-modifiable state.
Havoc
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]