in reply to Class::Struct::FIELDS broken under 5.10?

Someone submitted a patch for a "Modification of a read-only value attempted" bug 9 months ago. I'm not sure if it is the same issue you're having, but it's worth a look.

It is also worth considering the possibility that Class::Struct::FIELDS is no longer supported, since this bug has not been acknowledged and all CPAN Tester tests have been failing for all perl versions 5.95 and later (and on all platforms).

  • Comment on Re: Class::Struct::FIELDS broken under 5.10?

Replies are listed 'Best First'.
Re^2: Class::Struct::FIELDS broken under 5.10?
by creeble (Sexton) on Jun 16, 2011 at 17:14 UTC
    Darn. Well, does anyone have a recommendation for one of the many Class::* modules to replace Class::Struct::FIELDS? Class::Struct is great, but can't be subclassed easily. Class::Generator allows subclassing, but you must use closures for member functions. The thing I liked about Class::Struct (and ::FIELDS) is that you could combine simple member functions (defined outside the struct()) with subclassing.