Re: Associating Strings and Variables

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Thanks.  I looked at Quarks and it seems they merely associated
(psuedo-convert) strings to unique IDs which is not really what I want
to achieve.  I think that g_hash_* might work, but I was looking for
something a little more opaque.  In other words, I don't want to have to
keep track of/pass the GHashTable* from/across functions.  Perhaps I
will just write a wrapper for that. 

On Wed, 2006-04-12 at 07:38 +0200, Diego Zuccato wrote:
> Christ, Bryan wrote:
> > I really hate to re-invent the wheel if someone has already done this.
> > The idea here is that I can store a value in one function and recall it
> > later from somewhere else just by a string reference.
> 
> That's what hash tables are for... Look for g_hash_* .
> 
> There should be something else, too (quarks?), but I don't remember
> exactly, now.
> 
> BYtE,
>  Diego.
> 
_______________________________________________

gtk-list@xxxxxxxxx
http://mail.gnome.org/mailman/listinfo/gtk-list

[Index of Archives]     [Touch Screen Library]     [GIMP Users]     [Gnome]     [KDE]     [Yosemite News]     [Steve's Art]

  Powered by Linux