-
Notifications
You must be signed in to change notification settings - Fork 11
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Using custom type handler for objects inside array/hash refs #10
Comments
Specifically, the code in question: |
Ryan, is this a regression in 0.49? The logic with deep objects has On Mon, Apr 6, 2015 at 3:46 PM, ryan-lang [email protected] wrote:
|
No, the code in question seems to have existed in at least the last couple versions. Comparing them now, I see that 0.49 added some new logic nearby, but didn't alter the part that sends all blessed objects to the generic handler (not checked for custom type handlers). |
The docs mention that arrayrefs and hashrefs will be inspected up to one level down to serialize/deserialize any objects that are found, which is great. However, it appears that rather than checking types against the main types list, all blessed objects are passed directly to the generic "object handler". This means that any custom types added with
add_custom_type_handler
are ignored in this scenario.Can anyone shed some light on whether this is by-design, a potential area of improvement, or if there's a good workaround?
The text was updated successfully, but these errors were encountered: