in reply to Re^3: Using a tied scalar as an in memory file
in thread Using a tied scalar as an in memory file
You thought the variable was being passed directly, so you believed the SV was being passed by reference. In the same breath, you said tied variables don't work because SVs are passed by value. I called fouled on the latter, so I don't see how the typical practices of subs are of any consequence here.
Furthermore, we weren't talking about subs, so the typical practices for writing subs are completely irrelevant. (Builtin and other XS) functions access the SV directly until a specific native type is needed. I don't think I've ever seen one that copies the arguments on entry. Remember, the primary purpose of copying the args in subs is to provide named parameters, but functions already have named parameters.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^5: Using a tied scalar as an in memory file
by ELISHEVA (Prior) on Feb 22, 2009 at 13:12 UTC | |
by ikegami (Patriarch) on Feb 22, 2009 at 19:01 UTC |