Procedure Loading

When FMSLogo encounters a token that it neither a variable, a number, a word, an infix operator, a parenthesis, nor a bracket, then the token is interpreted as the name of a procedure. If this is the name of a primitive or a procedure that has already been defined, then FMSLogo calls that procedure. Otherwise, FMSLogo attempts to load the procedure into the workspace. If a ".lgo" file with the same name as with the procedure exists in the current working directory, then FMSLogo loads that file (as with the LOAD command). If no errors were encountered and the procedure was defined by loading the file, then that procedure is called. However, if the procedure is still not defined and a file with the same name exists in the Logolib directory, then that Logolib file is loaded. If no errors were encountered and the procedure was defined by loading the Logolib file, then the procedure is called. If the procedure is still not defined, then FMSLogo throws an "I don't know how to" error.


SourceForge.net Logo