On 2009-Mar-9, at 3:32 am, Ovid wrote:
Since you cache resultsets if they've not changed, you could easily have the XML
and YAML roles getting reapplied at runtime multiple times.
Could this issue be mitigated with temp variables?
  {
     temp $resultset does Role::Serializable::YAML;
     print $resultset.as_string;
 }

I suppose, but is there a reason why you want to apply roles instead of coercing the results?

    $x = Role::Serializable::XML $resultset;
    $y = Role::Serializable::YAML $resultset;



-David

Reply via email to