Re: Huge code chunk in IoVMInit.c.
"dennisf486" <[email protected]>
| Newsgroups | gmane.comp.lang.io |
|---|---|
| Message-ID | <[email protected]> |
--- In [email protected], Steve Dekorte <steve@...> wrote: > > > On 2011-05-26 Thu, at 03:58 AM, Jan-Paul Bultmann wrote: > > Why is there this huge chunk of io code in IoVMInit.c, please don't tell me that it has to be done this way :( > > Why can't the vm load a Init.io file, why does it have to be encoded in a gigantic c string that is full of escaped chars. > > I'm scared..... > > It's just some of the core Io standard lib that gets embedded into the vm. > It doesn't have to be like that - it dates back to when we had the ability to build Io into a single static executable. > I thought that was weird too when I saw it, although I figured that was the explanation. Maybe the core of Io should itself be an addon, that way it Init.io could live in a folder addons/core/io.