[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Support for Meta-Programming
Mike Griebling (grieblm@trt.allied.com) schrieb:
 >It would be necessary to produce a debugger "Ref" file which contains
 >definitions of all the types and variables in a module.
This is not a seperate file, but a date area within the object file.
 >I know of at
 >least one Oberon-2 compiler which does this.
ModuleWare's A2O?! ;-)
 >You could add "monitors" to each procedure which build a virtual
 >stack of calls which can be traversed during an error.  This would
But this would only be apropriate for debugging -- which is a single usage
example. A much more practical example is a sprintf-like function:
  SPrints.Print("Var r holds value %r");
Or even creating SQL-Statments, where the following function handles quoting,
too:
  SQL.Fill("INSERT INTO Names (Name, Surname) VALUES ($name, $surname)" );
+++hartmut