Excellent, thank you for taking time to explain that.

Best.

On Sunday, May 3, 2015 at 12:29:03 PM UTC-5, Ryan Phillips wrote:
>
>
> Hi! 
>
> exports allow variables and functions to be made available outside the 
> current file. Calling require('./test') will return a table of all the 
> exported elements out of test.lua. exports aid in creating libraries and 
> modules. 
>
> We provide the exports table within the module system, but you can 
> certainly return your own table. 
>
> Regards, 
> Ryan 
>
> On Sat, May 2, 2015, at 01:10 PM, develephant wrote: 
>
> > Hi, 
> > 
> >   
> > 
> > This is going to be a dumb question, but can someone explain what 
> "exports" are for and when I would use them?  Are they only specific to 
> making packages?  Because I do see some other exports in the source that 
> doesn't seem  like it has anything to do with packaging. 
> > 
> >   
> > 
> > Thanks in advance. 
> > 
> >   
> > 
> > Cheers. 
> > 
> > 
> > 
>
>
> > -- 
> > 
> > 
> You received this message because you are subscribed to the Google 
> Groups "luvit" group. 
> > 
> > 
> To unsubscribe from this group and stop receiving emails from it, send 
> an email to [email protected] <javascript:>. 
> > 
> > 
> For more options, visit https://groups.google.com/d/optout. 
> > 
>   
>
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"luvit" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to