>Also I can't find it in online help, and it causes syntax error. >so far, this example cannot seems to work and compiler complains >it cannot recognize 'tokens'.
Yes, that example was incorrect. Here are macros that return the current filename (as a String) and line number (as an int). I tested these and they work. For example: {output {this-file}, ":", {this-line}} Remember that macros (like all macros) need to go in a different package than where they are called. {import * from CURL.LANGUAGE.SOURCE} {define-macro public {this-file ?empty:{pattern}} {return {Literal {if-non-null url = empty.url then url.name else "[unknown file]" } } } } {define-macro public {this-line ?empty:{pattern}} let line:int = {empty.location-to-line-column empty.start-location} {return {Literal line}} } ******************************************* To unsubscribe from this list, send a mail to: mailto:[EMAIL PROTECTED] To contact a human list administrator, send a mail to: mailto:[EMAIL PROTECTED] To recieve a list of other options for this list, send a mail to: mailto:[EMAIL PROTECTED]