[689] in Coldmud discussion meeting

root meeting help first first in chain previous in chain previous next next in chain last in chain last

Re: assignment operator

daemon@ATHENA.MIT.EDU (Fri Mar 10 12:34:43 1995 )

From: brandon@avon.declab.usu.edu
To: coldstuff@MIT.EDU
Date: Fri, 10 Mar 95 10:16:30 -0700

< I think these endless squabbles over syntactic minutia
< are a good reason to put compilers in-db rather than
< inserver, personally :).

Because of a reason you yourself brought up (twisting it a little).  The most
frequently used sequence/procedure should be the most optimized.  Doing it
in-db means it will not be very optimized.  Doing it in-driver means it will
be (referring to both compile and decompile).

Actually, with the change Crag is working on we can remove "compile()"
and have an 'add_method(name, flags, args, vars, body)', then take the
parsing code in compile and make a 'coldc_to_method()' and a
'method_to_coldc()' (so, if people wanted to they could easilly add more
parsing functions).

The end result is, to compile code you would do:

  add_method('foo, @coldc_to_method(["arg foo; return foo;"]))

Instead of:

  compile(["arg foo; return foo;"], 'foo);