Re: Diamond speed issues (was: OOP libraries (was: Multiple includes
- Posted by kbochert at copper.net
Nov 12, 2003
On 12 Nov 2003 at 11:49, C. K. Lester wrote:
>
>
> Kat wrote:
>
> >See "associated lists", Jiri did one. Then to run code contained in a
> >variable,
> >see eval() in Bach.
> >
> >Kat
> >
> >
> I was lookin' at that the other day but couldn't figure which one to
> download. He's got several on his page. Which one is the latest 'n'
> greatest? Do they all serve a different purpose?
>
It is a little short on explanation.
Bach 1.4.6 is my original release, no longer being developed.
Bach 2.1.3 is the latest. It departs from Euphoria a little more.
Some improvements in 2.1 (IMO)
1) It is possible to define blocks like C ('{}') or like Python (indent)
2) '?' has log (print to file) and regess (compare against file) modes
3) a 'def' is a function whose return value can be ignored
4) a 'coroutine' is a def that begins where it last returned -- local variables
are preserved across invocations.
5) 'import' includes a file only in the current file.
6) lists may be used in formal parameters "function foo (integer x, y, z)"
7) string datatype
8) A default argument is permitted, as in:
function foo (string s, integer flag = 0)
...
end function
foo("test")
The next update is intended to have "eval()" to run a piece of
Bach code. I have it running, but have found a small memory
leak (thanks, Kat) that will require major surgery to remove.
Karl Bochert
|
Not Categorized, Please Help
|
|