[EMAIL PROTECTED] wrote:
> 
> Is there a way to get UNICON/ICON to provide call stack information of
> the sort one gets whenever there is a runtime error?
....
> &null == ""
> 
> works.  Is there a less "klugy" approach?

Oh, and if you're ok with the program terminating, just call runerr(100).
(Nicer than the above.)  This is a builtin function in Unicon.
The first argument is the error number - 100 is an unassigned error
number.  You can add a second argument as the reason for the error,
so:

   runerr(100, "forced error")

produces:

   Run-time error 100
   File foo.icn; Line 6

   offending value: "forced error"
   Traceback:
      main()
      a() from line 2 in foo.icn
      runerr(100,"forced error") from line 6 in foo.icn

-- 
Steve Wampler -- [EMAIL PROTECTED]
The gods that smiled on your birth are now laughing out loud.

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Unicon-group mailing list
Unicon-group@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/unicon-group

Reply via email to