[ Create a new account ]
I followed everything up until this, at the end of the authentication example:
# authentication failedauth_failure: $I0 = ap_constants['HTTP_UNAUTHORIZED'] goto auth_return_status # return our status codeauth_return_status: $I0 = ap_constants['OK'] .pcc_begin_return .return $I0 .pcc_end_return.end
Wouldn't this return ap_constants['OK'] even when the authentication fails? ($I0 gets assigned that value in both cases
Fixed now. Good catch, Michel.
OK, it makes more sense now.
Cool article BTW, it's nice to see yet an other demonstration of Parrot usefulness. And I loved the examples: I find it quite incredible to be able to do that kind of high-level task in a few lines of an assembly-like language.
Get More Comments
Reply
jeff++ (Score:2)
I am confused (Score:2)
I followed everything up until this, at the end of the authentication example:
Wouldn't this return ap_constants['OK'] even when the authentication fails? ($I0 gets assigned that value in both cases
mirod
Re:I am confused (Score:1)
Re:I am confused (Score:1)
Fixed now. Good catch, Michel.
Not confused anymore (Score:2)
OK, it makes more sense now.
Cool article BTW, it's nice to see yet an other demonstration of Parrot usefulness. And I loved the examples: I find it quite incredible to be able to do that kind of high-level task in a few lines of an assembly-like language.
mirod