Re: [CDBI] Class::DBI and DESTROY

[prev] [thread] [next] [Date index for 2005/11/10]

From: William Ross
Subject: Re: [CDBI] Class::DBI and DESTROY
Date: 16:42 on 10 Nov 2005
On 10 Nov 2005, at 13:15, Steven Mackenzie wrote:

> <snip>
> # use the configured card writer to write an index card for this CD

if I read this correctly, the more orthodox solution would be to  
include a 'writer' column in the CD (or more likely Genre) class and  
define a has_a relationship on that column that inflates to the  
appropriate Writer object and deflates back to whatever arbitrary tag  
you're using to identify it. Then you don't have to worry about  
uniqueness and destruction at all.

ALternatively  if your real situation is more complex - you might be  
able to work around these problems by making your card writers a set  
of singletons. If that isn't too contradictory.

.2p

will


_______________________________________________
ClassDBI mailing list
ClassDBI@xxxxx.xxxxxxxxxxxxxxxx.xxx
http://lists.digitalcraftsmen.net/mailman/listinfo/classdbi

(message missing)

[CDBI] Class::DBI and DESTROY
Steven Mackenzie 13:15 on 10 Nov 2005

Re: [CDBI] Class::DBI and DESTROY
Perrin Harkins 14:16 on 10 Nov 2005

Re: [CDBI] Class::DBI and DESTROY
Perrin Harkins 15:57 on 10 Nov 2005

Re: [CDBI] Class::DBI and DESTROY
Steven Mackenzie 16:12 on 10 Nov 2005

Re: [CDBI] Class::DBI and DESTROY
Perrin Harkins 16:17 on 10 Nov 2005

Re: [CDBI] Class::DBI and DESTROY
Steven Mackenzie 16:48 on 10 Nov 2005

Re: [CDBI] Class::DBI and DESTROY
Steven Mackenzie 15:57 on 10 Nov 2005

Re: [CDBI] Class::DBI and DESTROY
William Ross 16:42 on 10 Nov 2005

Re: [CDBI] Class::DBI and DESTROY
Steven Mackenzie 17:10 on 10 Nov 2005

Re: [CDBI] Class::DBI and DESTROY
William Ross 18:17 on 10 Nov 2005

Re: [CDBI] Class::DBI and DESTROY
Matt S Trout 18:36 on 10 Nov 2005

Re: [CDBI] Class::DBI and DESTROY
Steven Mackenzie 19:20 on 10 Nov 2005

Re: [CDBI] Class::DBI and DESTROY
Perrin Harkins 16:51 on 10 Nov 2005

Re: [CDBI] Class::DBI and DESTROY
Matt S Trout 19:43 on 10 Nov 2005

Generated at 23:12 on 13 Nov 2005 by mariachi v0.52