Skip to content
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

Sereal does not preserve VSTRING ref type #152

Open
Grinnz opened this issue Sep 20, 2016 · 1 comment
Open

Sereal does not preserve VSTRING ref type #152

Grinnz opened this issue Sep 20, 2016 · 1 comment

Comments

@Grinnz
Copy link

Grinnz commented Sep 20, 2016

After encoding and decoding, a VSTRING ref has become a simple SCALAR ref.

$ perl -MSereal::Encoder -MSereal::Decoder -E'my $v = \v1.2.3; say ref $v; say ref Sereal::Decoder->new->decode(Sereal::Encoder->new->encode($v))'
VSTRING
SCALAR

$ perl -MStorable=freeze,thaw -E'my $v = \v1.2.3; say ref $v; say ref thaw(freeze($v))'
VSTRING
VSTRING
@demerphq
Copy link
Member

VSTRING's are ties that lie and claim they are true types. This is unfortunate as it makes people think that things like Sereal should support them. Currently we dont support ties of any sort. And i am sure the non-perl folks are happy too. :-)

Maybe one day we will offer proper vstring support. But it is not a high priority for us.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants