On Thu, 2002-09-05 at 03:18, Leopold Toetsch wrote:
> Brent Dax wrote:
>
> > Aaron Sherman:
> > sub abs($num is int){ return $num>=0 ?? $num :: -$num }
> > ^^^^^^^^^^^^^
> > I believe that should be (int $num).
>
>
> and there is a �abs� in core.ops.
I'll remove that then, and replace it with an INTERNAL comment
> Anyway, before implementing a bunch of builtins, it should be organized
> a little, where they should finally be stored.
>
> The current Bultins.pm is not the place for it in the long run.
> Builitins implemented in perl6 could go to a hierarchy of subdirs below
> P6C/Buitins.
> For builtins written as .imc or .pasm I'll do some sort of #include
> mechanism in imcc. If they are stored as individual files in above
> hierarchy or somewhere else should be discussed too. Actually they will
> be bundled to some sort of runtime lib anyways.
Sounds great. I'd be happy to do this work on a branch if someone gives
me commit privs.
I'll probably compile some of this down to IMC and then hand-optimize.
Things like the list operators come most strongly to mind here.