lua-users home
lua-l archive

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]


yes. you can require any of the base libraries, string, os, io etc

On 1/18/06, Chris Marrin <chris@marrin.com> wrote:
> D Burgess wrote:
> > ...
> > Methinks Edgar had in mind that you would use
> >
> > require"osex"   or require"os.ex"
> >
> > given that you writing a C module , you can populate whicever table you
> > like, in this case os.
>
> But if you 'require "os.ex"', it will first do an implicit 'require
> "os"' and that's what I'm worried about. Will that succeed?
>
> --
> chris marrin                ,""$,
> chris@marrin.com          b`    $                             ,,.
>                          mP     b'                            , 1$'
>          ,.`           ,b`    ,`                              :$$'
>       ,|`             mP    ,`                                       ,mm
>     ,b"              b"   ,`            ,mm      m$$    ,m         ,`P$$
>    m$`             ,b`  .` ,mm        ,'|$P   ,|"1$`  ,b$P       ,`  :$1
>   b$`             ,$: :,`` |$$      ,`   $$` ,|` ,$$,,`"$$     .`    :$|
> b$|            _m$`,:`    :$1   ,`     ,$Pm|`    `    :$$,..;"'     |$:
> P$b,      _;b$$b$1"       |$$ ,`      ,$$"             ``'          $$
>   ```"```'"    `"`         `""`        ""`                          ,P`
> "As a general rule,don't solve puzzles that open portals to Hell"'
>