Passing $ as a function argument
Neia Neutuladh
neia at ikeran.org
Wed Oct 10 16:35:24 UTC 2018
On 10/10/2018 01:46 AM, James Japherson wrote:
> Would be nice to be able to pass $ as a function argument to be used in
> automatic path length traversing.
$ only works in indexing operations because that's required to figure
out what it refers to. However, you can mostly use it as a readonly
variable there, with the caveat that you can't refer to it directly from
function literals.
More information about the Digitalmars-d
mailing list