People,
consider the two simple programs for  1.input and 2.input  respectively:

-- 1 ------------------------------------------------------
iReadinessFile: File String := open("readinessForAxiom.txt", "input")
read!(iReadinessFile)
if % = "1" then "done" else "not done"
close! iReadinessFile
-----------------------------------------------------------

-- 2 ------------------------------------------------------
iReadinessFile: File String := open("readinessForAxiom.txt", "input")
repeat
  read!(iReadinessFile)
  if % = "1" then break else iterate
close! iReadinessFile
"done"
-----------------------------------------------------------

The aimed meaining is to wait till "1" appears in the file and then 
to do a certain thing.
Is this an appropriate program?

Now, put "1" to  readinessForAxiom.txt  and run the programs.

-> )read 1   works correct.

-> )read 2   
reports 
  Cannot find a definition or applicable library operation named = 
      with argument type(s) 
                                File(String)
                                   String
      
      Perhaps you should use "@" to indicate the required return type, 
      or "$" to specify which version of the function you need.
   FriCAS will attempt to step through and interpret the code.
   There are 2 exposed and 8 unexposed library operations named = 
      having 2 argument(s) but none was determined to be applicable. 
     ...

Can you explain, please?
Thank you in advance for help,

------
Sergei
[email protected]

-- 
You received this message because you are subscribed to the Google Groups 
"FriCAS - computer algebra system" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/fricas-devel?hl=en.

Reply via email to