Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

3
  • 1
    $\begingroup$ maybe Block instead of Module? $\endgroup$ Commented Jul 14, 2017 at 12:13
  • $\begingroup$ @kglr, thanks. I think I'd also consider this a full answer. Indeed not only does this work, I think it is the sensible solution. I have been following the advice of the wise Leonid Shifrin: "In practice, my advice would be to avoid using Block unless you know quite well why you need it." However, I do think that this is the type of situation that actually calls for a Block. Your answer inspired me to finally read up on Block, instead of dismissing it as less useful than Module. $\endgroup$ Commented Jul 14, 2017 at 15:07
  • $\begingroup$ Kvothe, I posted the comment as an answer. $\endgroup$ Commented Jul 14, 2017 at 15:19