On Thu, Mar 12, 2009 at 4:26 PM, Andrei Alexandrescu <seewebsiteforem...@erdani.org> wrote: > > Nice. The problem however is that very, very often I need to store > intermediate results, otherwise the code becomes quickly unreadable or > spread across too many different non-reusable templates. What I now do is > e.g. create a short template Blah(X, Y, Z) that aliases itself to > BlahImpl!(X, Y, Z).Result. Hardly elegant.
That's true. > I suggested Walter to allow templates using the eponymous trick to be able > to define private symbols. That seems like a reasonable solution. I'm assuming you'd allow templates to define at most one public symbol.