Re: Calling Procedure in an .e file
- Posted by Irv <irv at ELLIJAY.COM> Jun 01, 1998
- 835 views
At 06:34 PM 5/28/98 -0400, you wrote: [What are include files?] Alan: You have probably figured this out by now (having a long, quiet weekend without the listserver) In order to call a function or procedure in an include file, you have to make it visible to the program that "includes" it: ----------------------- --howdy.e global procedure SayHi() atom x x = 5 * 2 printf(1,"Hi! Did you know the value of x is: %d ?",x) end procedure ----------------------- --main.ex include howdy.e SayHi() ------------------------ And yes, you can declare variables within a function or procedure! In fact, you should generally do that. Global variables should be very rare, if you want code that is easy to follow, and doesn't break. That's all, folks! Irv