2007/5/11, Greg Reddin <[EMAIL PROTECTED]>:
On 5/11/07, Antonio Petrelli <[EMAIL PROTECTED]> wrote: > > 2007/5/10, Greg Reddin <[EMAIL PROTECTED]>: > Well, not > exactly, I have in mind to create a list of definitions to be resolved (in > DefinitionsImpl), and removing them from the list when they have been > resolved.
I'm glad you like it, though the committed implementation is EXACTLY THE OPPOSITE of what I wrote :-) I used a set to store definition names that have been already resolved. In fact, when I was thinking about the first solution, I thought that there is a class that acts as a Set and allows to get the first item of that set (without making mySet.iterator().next()). I rejected this solution because, with a normal Set, it would create a lot of objects that will be almost immediately discarded. Antonio
