From: <noreply@so...>  20020715 17:37:48

Bugs item #581798, was opened at 20020715 12:37 You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=104933&aid=581798&group_id=4933 Category: None Group: None Status: Open Resolution: None Priority: 5 Submitted By: Barton Willis (willisb) Assigned to: Nobody/Anonymous (nobody) Summary: misleading error from translate_file Initial Comment: translate_file terminates with a misleading error message while attempting to translate the file start of file  my_apply(f,x) := f(x); end of file  (my_apply is a silly function; nevertheless, translate_file should handle it more gracefully.) The source of the error may be related to the warning Maxima gives while translating my_apply. Specifically, here is what happened: GCL (GNU Common Lisp) Version(2.4.0) Sat Jul 6 12:35:43 CDT 2002 Licensed under GNU Library General Public License Contains Enhancements by W. Schelter Maxima 5.6 Sat Jul 6 12:35:40 CDT 2002 (with enhancements by W. Schelter). Licensed under the GNU Public License (see file COPYING) (C1) system("cat try.mac")$ my_apply(f, x) := f(x); (C2) translate_file("try.mac"); Translation begun on #ptry.mac. Error: (#<output stream "try.UNLISP">) is not of type STREAM. Fast links are on: do (si::usefastlinks nil) for debugging Error signalled by TRTELL. Broken at TRTELL. Type :H for Help. MAXIMA>>:q (C3) load("try.mac")$ /* Translating my_apply gives a warning. */ (C4) translate(my_apply); f in the form f(x) has been used as a function, yet is a bound variable in this context. This code being translated as :APPLY(f,[x]) (D4) [my_apply] (C5) Barton  You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=104933&aid=581798&group_id=4933 