CompuServe Messages

#Modula Problem

#: 23307 S7/ProgrammingForum unknown
    17-Jun-86 21:47:52
Sb: #23270-#Modula Problem
Fm: Richard Bielak 75716,352
To: John Mesiavech 75076,1640

This message turned up in search, but its forum couldn’t be identified from the original transcript, so it may not be linked into its thread.

Hi John! There is a very easy way to fix your problem. The line in your main program should be: "Dummy := OpenLibraries();". If this looks strange, remember that in Modula-2 you can procedure variables. Your original statement tries to assign a procedure to a BOOLEAN variable which results in a type mismatch. Putting the "()" indicates that the procedure must be called, and whatever it returns should be assigned to "Dummy". This is a little weird, since not to many languages have procedure variables. (In C there are pointers to functions which are basicaly the same thing….) …….hope this helps……Richie