D - Overloading function call operator
- mjm <mjm_member pathlink.com> Aug 11 2003
- "Matthew Wilson" <matthew stlsoft.org> Aug 11 2003
- Ilya Minkov <midiclub 8ung.at> Aug 11 2003
Please implement the overloading of the function call operator. Then array indexing could be a special case of that and this is also useful elsewhere (function objects, random number generators).
Aug 11 2003
I'm inclined to agree by (C++) instinct, but I think some example cases would be good. "mjm" <mjm_member pathlink.com> wrote in message news:bh8esq$1crg$1 digitaldaemon.com...Please implement the overloading of the function call operator. Then array indexing could be a special case of that and this is also
elsewhere (function objects, random number generators).
Aug 11 2003
mjm wrote:Please implement the overloading of the function call operator. Then array indexing could be a special case of that and this is also useful elsewhere (function objects, random number generators).
Won't closures also do? And no, it's not good enough for array indexing, since it would be useful to distinguish between array element getter and setter! -i.
Aug 11 2003









"Matthew Wilson" <matthew stlsoft.org> 