Strange behaviour assigning values to a SimpleList



-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

I've found that if I assign the reference directly for the data list of a
SimpleList, it doesn't work correctly.

This is what I mean:

$mySimpleList->{data} = \ theArrayIWantDisplayed;

That doesn't work; none of the data in the list is displayed.

Whereas, if I use this form:

@{$mySimpleList->{data}} = @theArrayIWantDisplayed;

it works fine.

Any thoughts, comments? Does gtk get mad if I change its pointers around?

Incidentally, it'd be awfully nice if there was a method to update the
data in a SimpleList. Something like this:

$mySimpleList->new_data (@theArrayIWantDisplayed)

would just be unbelievably handy (and way more readable :).
- -- 
GnuPG public key available from
http://homepage.mac.com/danflemming/gnupg_key.html
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.4 (GNU/Linux)
Comment: Made with pgp4pine 1.76

iD8DBQFA7qYyER493M5r4PIRApy3AJ42Sgj9eh3Ia5bGDCA1dIaFcV/SbACff2he
lGiFTiSjTn4NCg8YtgL75Yc=
=v0BJ
-----END PGP SIGNATURE-----




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