-
Notifications
You must be signed in to change notification settings - Fork 46
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
PDL::PP::pp_def: HdrCode is ignored when PMCode is present #463
Comments
Thanks for following up with this! Take a look at the linked commit, which I believe solves this issue. If you agree, go ahead and close this. But do have a read of the commit, since it shows how easy it is to update PP once one gets an idea of how it works (it's a sort of pull-based lazy evaluation system). To get a further idea, you can run |
Fixed. Thanks @mohawk2 ! The rules picture is very impressive. I'll take a closer look at it. |
Please feel free to ask questions on the mailing list(s)! |
When defining a pp function using
pp_def
, the code in aHdrCode
block is ignored if aPMCode
block exists.Here is a pd file to reproduce the behaviour. In the PMCode block, the argument
k
is multiplied by 3 and in theHdrCode
block it is multiplied by 5.Accompanied by a corresponding test program: With a = 1, and k = 2, the result should be 30, but the HdrCode factor is missing in the result.
The text was updated successfully, but these errors were encountered: