September 18, 2013 Re: I cannot understand problem with argument of the function | ||||
---|---|---|---|---|
| ||||
Posted in reply to mrd | This bug reproducible also without a template: http://pastebin.com/QPvCFYL1 $ ./bug works: Inside of body: value=1 type=ulong Inside of out contract: value=1 type=ulong result=[1] not works: Inside of body: value=300 type=ulong Inside of out contract: value=2 type=ulong result=[172, 2] |
September 19, 2013 Re: I cannot understand problem with argument of the function | ||||
---|---|---|---|---|
| ||||
Posted in reply to mrd | On Wednesday, 18 September 2013 at 21:13:27 UTC, mrd wrote:
> This bug reproducible also without a template:
>
> http://pastebin.com/QPvCFYL1
>
> $ ./bug
> works:
> Inside of body: value=1 type=ulong
> Inside of out contract: value=1 type=ulong result=[1]
> not works:
> Inside of body: value=300 type=ulong
> Inside of out contract: value=2 type=ulong result=[172, 2]
Well, as we have already concluded, you can't mutate your input arguments if you wish to use them again in your out contract.
|
Copyright © 1999-2021 by the D Language Foundation