Richard, As per Steve's comments, the Icon language officially considered it a feature that built-in functions could be overridden in programs, although some of the later IPL code written by Ralph got pretty defensive about not trusting the user to leave the built-ins alone, for variables such as "type".
I believe "unicon -u -c char.icn" would give the same output char.u for your char.icn but would have given you the warning message you request in this message. On Wed, Jul 1, 2009 at 5:54 AM, Richard H. McCullough<r...@pioneerca.com> wrote: > Example from char.icn in mKE. > This "bug" didn't show up until I tried to use the Unicon "char" function. > > "icont -u -c char.icn" did not detect my missing declaration > local char > in > procedure set_charnest(subject,charnest,nvtype) > ... > every char := ! charnest do { > ... > } # end every char > end > because "char" is a built-in Unicon function. > > It would be helpful if icont detected this kind of error. > > Dick McCullough > http://mkrmke.org ------------------------------------------------------------------------------ _______________________________________________ Unicon-group mailing list Unicon-group@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/unicon-group