[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: 'in' keyword today (was Re: mathlib)
- From: steve donovan <steve.j.donovan@...>
- Date: Wed, 9 Apr 2014 13:54:05 +0200
On Wed, Apr 9, 2014 at 11:32 AM, steve donovan
<steve.j.donovan@gmail.com> wrote:
> It works, but ... just for entertainment value, you know ;) (Easy to
> port to 5.2)
This is a more bullet-proof version:
https://gist.github.com/stevedonovan/10259826
require 'from'
local sin,cos,tan = slots(3) from(math)
local import,printf = slots(2) from 'pl.utils'
local pretty,utils,xml = slots(3) from 'pl.*'
The last form is possibly overkill but in general, modules live in
packages and any proposal needs to address this fact.
caveat: the debug library is used and can be slow - only use for
top-level declarations.
- References:
- Re: mathlib, Roberto Ierusalimschy
- Re: mathlib, Luiz Henrique de Figueiredo
- Re: mathlib, Roberto Ierusalimschy
- Re: mathlib, Christopher Berardi
- Re: mathlib, steve donovan
- Re: mathlib, Christopher Berardi
- Re: mathlib, Sean Conner
- Re: mathlib, Coroutines
- Re: mathlib, Sean Conner
- Re: mathlib, Christopher Berardi
- Re: mathlib, steve donovan
- Re: mathlib, Coroutines
- Re: mathlib, steve donovan
- Re: mathlib, Coroutines
- 'in' keyword today (was Re: mathlib), Petite Abeille
- Re: 'in' keyword today (was Re: mathlib), Rena
- Re: 'in' keyword today (was Re: mathlib), Philipp Janda
- Re: 'in' keyword today (was Re: mathlib), Coroutines
- Re: 'in' keyword today (was Re: mathlib), Dirk Laurie
- Re: 'in' keyword today (was Re: mathlib), steve donovan
- Re: 'in' keyword today (was Re: mathlib), steve donovan