<html><head></head><body>Function A collects data and then calls function B with some, but also has data that should be passed to function C. <br clear="none">
<br clear="none">
But ofc if nested functions are allowed then that might solve the issue. I don't think I've seen nested functions mentioned in a tutorial I've been looking at. <br clear="none">
<br clear="none">
/martin s<br clear="none"><br clear="none"><div class="gmail_quote">On 24 Jul 2014, Chris Angelico <rosuav@gmail.com> wrote:<blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
<pre class="k10mail">On Thu, Jul 24, 2014 at 4:36 PM, Martin S <shieldfire@gmail.com> wrote:<br clear="none"></pre><blockquote class="gmail_quote" style="margin: 0pt 0pt 1ex 0.8ex; border-left: 1px solid #729fcf; padding-left: 1ex;">How do you pass data from one function to many?<br clear="none"><br clear="none">I have functions A B and C. If data generated in A is useable in both<br clear="none">B and C how do I ensure this data is passed as needed? Or is it a<br clear="none">symptom of bad code?</blockquote><br clear="none">This is a little vague. Is there one function which calls A and then<br clear="none">calls B and C? What's the relationship between them? Is it logical for<br clear="none">A to itself call B and C? Are they all methods off one object?<br clear="none">Top-level functions in a module?<br clear="none"><br clear="none">ChrisA</blockquote></div><br clear="none">-- Sent with <b><a shape="rect"
href="https://play.google.com/store/apps/details?id=com.onegravity.k10.pro2">K-@ Mail</a></b> - the evolution of emailing.</body></html>