January 13, 2012 Re: opApply with/without ref | ||||
---|---|---|---|---|
| ||||
Posted in reply to bearophile | On Fri, Jan 13, 2012 at 07:36:40AM -0500, bearophile wrote: > H. S. Teoh: > > > void opApply(int delegate(ref uint n) cb) const { > > Use "const ref": > > void opApply(int delegate(const ref uint n) cb) const { [...] Thanks a lot! That works like a charm! T -- Let's not fight disease by killing the patient. -- Sean 'Shaleh' Perry |
Copyright © 1999-2021 by the D Language Foundation