#More Modula-2 Questions
21-Oct-86 00:19:53
Sb: #More Modula-2 Questions
Fm: Lon Leader 72355,1754
To: Richard Bielak 75716,352
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.
Richie, I've got a couple of M2 questions for you, if you have the time
to answer. (Any other M2 gurus… please jump in also!)
1. How do you pass NULL as a parameter to a procedure….
eg. in C… RefreshGadgets (&firstgadget,wp,NULL)
M2… RefreshGadgets (firstgadget,wp, ? )
or when setting up several similar gadgets using one common
procedure, for the last one you want to pass NULL for the
NextGadget parameter.
2. I am attempting to convert a C program to M2 (BIG mistake, 'cause the
reason I am learning M2 is because I can't understand C) and I am
setting all the window stuff up first… have 23 BOOLGADGETs, 3
STRGADGETs, and 1 PROPGADGET… but no code to use them yet. It
compiles and runs ok with all variables declared in the main module,
but when I move the variables into their respective procedures it
compiles ok but locks up the system when I run it. Any ideas?
Thanks, Lon