Quantcast
Channel: Recent Writing - Mark Story
Viewing all articles
Browse latest Browse all 125

Building an iterator that can grow

$
0
0
A few weeks ago I ran into a tricky to solve issue in CakePHP. It involved an iterator that needs be grown during iteration, and nested loops over that same iterator. While infrequent, there are scenarios where you would want to grow an iterator as it is being iterated. My situation is the plugin registry for CakePHP. Plugins support a bootstrap hook method that is used to initialize a plugin.

Viewing all articles
Browse latest Browse all 125

Trending Articles