We need to rethink remove in std.container

spir denis.spir at gmail.com
Tue Feb 22 08:32:06 PST 2011


On 02/22/2011 03:13 PM, Steven Schveighoffer wrote:
> I wonder if there is a way we could generalize "give me the
> implementation-specific representation of the first item *reference*"

If this means a generalisation of what D's builtin 'in' provides, then I think 
this would be great. Then, passing back the 'reference' would provide _direct_ 
access (without [new] lookup) either to read, remove, change... Can't we unify 
this with your notion of cursor? What do you think?

Denis
-- 
_________________
vita es estrany
spir.wikidot.com



More information about the Digitalmars-d mailing list