Re: load user defined module
- Posted by Kat <kat at kogeijin.com> Nov 08, 2002
- 391 views
On 8 Nov 2002, at 21:50, Robert Craig wrote: > > Derek Parnell writes: > > Robert, > > is this the sort of thing you are suggesting for us ? ... > > ... > > ... > > As you could imagine, it would not take much for this to > > become very hard to maintain. Can you suggest a better approach? > > I don't know. There are various approaches that you could take. > Igor's dynamic include approach is one, although it won't > work with the binder or translator. > A lot depends on the specific situation - how much code is in > common across platforms, can the differences be expressed as > different data rather than different code, etc. You might even > use 3 different sequences of routine id's for 3 platforms. > I'm sure you can come up with as good a solution as I might. > The conditional compilation approach can get ugly too. > If you look at the C source for Euphoria, you'll see sections of > very ugly code because of all the conditional compilation > directives for different platforms. I do it because people > demand maximum speed and minimum interpreter size. > I'd need to see some real cross-platform examples > to get interested in adding conditional compilation. > I just haven't seen many. Too bad i can't run my windows code on the FreeBSD shell, or i'd be able to show you some. The only reason i don't have a cheapie PDA is because i can't program it in Eu or mirc, altho Dialect will program a WinCE and it's free with free source too.... someone must have shown them a use for it,, oh wait, Aristar has their own reason, they make $$$$$ with their medical stuff, including the PDAs the doctors carry. Kat, meow.