<br><br><div class="gmail_quote">On Thu, Apr 5, 2012 at 9:01 AM, Bill Moseley <span dir="ltr"><<a href="mailto:moseley@hank.org">moseley@hank.org</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">

<div class="im"><br></div><div class="gmail_quote"><div class="im"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<br>
I find myself worrying about what I would do if I needed more than two<br>
stages, instantiation and lazy access.  Like what if I wanted to put<br>
the id in the subject?<br></blockquote></div></div></blockquote><div><br></div><div>Oops, speaking of lazy...</div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">

<div class="gmail_quote"><div class="im"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"></blockquote><div><br></div></div><div>has id => ( lazy_build => 1, ... );</div>

</div></blockquote><div><br></div><div> </div><div class="gmail_quote"><div>sub _build_id { return shift->id_by_name }</div></div><div><br></div><div>where that method looks up the name, for example, in %name_to_id_map. </div>

<div><br></div><div>Might make the name attribute have a type limited to values in %name_to_id_map;</div><div><br></div></div><br clear="all"><div><br></div>-- <br>Bill Moseley<br><a href="mailto:moseley@hank.org" target="_blank">moseley@hank.org</a><br>