Skip Menu |

This queue is for tickets about the Tangram CPAN distribution.

Report information
The Basics
Id: 2783
Status: resolved
Priority: 0/
Queue: Tangram

People
Owner: Nobody in particular
Requestors: tangram [...] swingspan.net
Cc:
AdminCc:

Bug Information
Severity: (no value)
Broken in: (no value)
Fixed in: (no value)



From: tangram [...] swingspan.net (by way of Sam Vilain <sam [...] vilain.net>)
Subject: Re: [Tangram-users] adding children?
Date: Thu, 12 Jun 2003 03:34:23 +1200
To: bug-Tangram [...] rt.cpan.org
Some information on the Tangram/5.8.0 bug with T2 Show quoted text
>---
Yes, that's what I thought. But it just doesn't work that way for me. After I push, if I enumerate the array, $maggie isn't there. Ah hah! I just recalled something about perl 5.8.0 and so I searched the list archives for that. I see in November 2002 there was a thread about 5.8.0 and this message: http://sourceforge.net/mailarchive/forum.php?thread_id=1279426&forum_id=71 37 So there it is. I'm a perl 5.8.0 user, and I can't downgrade my system(s) just for Tangram. Is there a patch for this to run under 5.8.0? Should I be looking at another OO-RDMS tool? Thanks, all, for your help. Tangram's great, so I hope it can be made to work with modern perl. Cheers, S. G. Quoting Aaron J Mackey <ajm6q@virginia.edu>: Show quoted text
> I typically do it this way: > > push @{$homer->{children}}, $maggie; > > or, via Class::Tangram: > > $homer->children_push($maggie); > > (I probably need to send the Class::Tangram patch that provides _push, > _pop, _shift, _unshift, _splice, _includes and _size methods to iarray > attreibtues to Sam Vilain, though). > > -Aaron > > On Wed, 11 Jun 2003 tangram@swingspan.net wrote:
> > Howdy, > > > > I'm a (mostly) happy Tangram user. However, I've run into a little > > snag.
> > I'll >
> > be grateful for any help. > > > > Using the example schema, here's what I can't do: > > 1. I create some people (Bart, Lisa) and add them as children to > > Homer. 2. All is well, I can list parent/child relationships. > > 3. Now I want to add a new person (Maggie) as a child of Homer. > > 4. I create the person (Maggie). All is well. > > 5. I build an array of all the children (Bart, Lisa, Maggie) called
> > @children. >
> > 6. I do this: $homer->{children} = [@children]; All is NOT well. > > > > No matter what I do, I can't add to the {children} property, as if > > it's read-only. If, right after my attempting assignment, I do this: > > for my $foo (@{$homer->{children}}) { print $foo->{name}; } > > I only see Bart and Lisa. > > > > If I make up a property ($homer->{foobar}) and assign to that, I can
> > enumerate >
> > all the children (Bart, Lisa, Maggie) fine. However, that obviously
> > doesn't >
> > work because I need to values to be in the {children} property when I > > call $storage->update($homer); > > > > All other assignments/updates work fine. It's just changing this > > array of objects that's a problem. Am I doing something obviously > > wrong? Thanks. > > > > Cheers, > > S. G. > > > > > > ------------------------------------------------------- > > This SF.net email is sponsored by: Etnus, makers of TotalView, The > > best thread debugger on the planet. Designed with thread debugging > > features you've never dreamed of, try TotalView 6 free at > > www.etnus.com. _______________________________________________ > > Tangram-users mailing list > > Tangram-users@lists.sourceforge.net > > https://lists.sourceforge.net/lists/listinfo/tangram-users
> > -- > Aaron J Mackey > Pearson Laboratory > University of Virginia > (434) 924-2821 > amackey@virginia.edu > > > > > ------------------------------------------------------- > This SF.net email is sponsored by: Etnus, makers of TotalView, The best > thread debugger on the planet. Designed with thread debugging features > you've never dreamed of, try TotalView 6 free at www.etnus.com. > _______________________________________________ > Tangram-users mailing list > Tangram-users@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/tangram-users
------------------------------------------------------- This SF.NET email is sponsored by: eBay Great deals on office technology -- on eBay now! Click here: http://adfarm.mediaplex.com/ad/ck/711-11697-6916-5 Show quoted text
_______________________________________________ Tangram-users mailing list Tangram-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/tangram-users