qpid-proton mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "ASF subversion and git services (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (PROTON-582) Perl language bindings do not properly identify integers from strings when encoding
Date Tue, 17 Mar 2015 13:08:38 GMT

    [ https://issues.apache.org/jira/browse/PROTON-582?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14365086#comment-14365086
] 

ASF subversion and git services commented on PROTON-582:
--------------------------------------------------------

Commit f32643492ba6763d46caccc59752ce1fb64ced9e in qpid-proton's branch refs/heads/master
from [~mcpierce]
[ https://git-wip-us.apache.org/repos/asf?p=qpid-proton.git;h=f326434 ]

PROTON-582: Added in missing is_float method to Perl bindings.


> Perl language bindings do not properly identify integers from strings when encoding
> -----------------------------------------------------------------------------------
>
>                 Key: PROTON-582
>                 URL: https://issues.apache.org/jira/browse/PROTON-582
>             Project: Qpid Proton
>          Issue Type: Bug
>          Components: perl-binding
>    Affects Versions: 0.7
>            Reporter: Darryl L. Pierce
>            Assignee: Darryl L. Pierce
>             Fix For: 0.8
>
>
> Rafi found the code:
>   sub isnum ($) {
>       return 0 if $_[0] eq '';
>       $_[0] ^ $_[0] ? 0 : 1
>   }
> which can differentiate strings from integers. An additional piece can check for a .
in a numeric value to differentiate integers from floating point values.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Mime
View raw message