Re: How to use procedures in the whole module
----boundary-LibPST-iamunique-2112961699_-_-
Content-type: text/plain
Hello Hector,
To make a forward declaration of a procedure you have to type:
PROCEDURE ^ NameOfTheProcedure;
Here is an example:
MODULE example;
IMPORT Dialog;
PROCEDURE ^ Beep;
PROCEDURE Main*;
BEGIN
Beep
END Main;
PROCEDURE Beep;
BEGIN
Dialog.Beep
END Beep;
END example.
Regards,
Juan Antonio
----- Original Message -----
From: Hector Blanco
To: blackbox{([at]})nowhere.xy
Sent: Sunday, March 31, 2002 7:18 PM
Subject: How to use procedures in the whole module
Hello to the circle.
I am working on a program, and I got a problem. I have to know how to use a
Procedure in the whole module; I mean, with my few knowledgements I only can
use a Procedure in another if I have declared (and implemented) the first
procedure before the second, for example, if I do something like:
PROCEDURE A;
BEGIN
B;
END A;
PROCEDURE B;
BEGIN
A;
END B
the compiler gives me an error in the Procedure A when I try to use the
Procedure B inside of it. How could I mend that?. I have heard that there is
a way to declare all the procedures I want on the header of the module, but
I haven't been able to do it.
Thanks to all.
HECTOR
--------------------------------------------
To unsubscribe from this mailing list, send a message containing the word "unsubscribe" to:
blackbox-request{([at]})nowhere.xy
To get a list of valid e-mail commands and instructions on their usage, send a message containing the word "help" to the above address.
Send any problem reports or questions related to this email list to the list owner at
owner-blackbox{([at]})nowhere.xy
Current posting policy:
a) To post you should use the same address by which you are subscribed to the mailing list. That way, the list server will recognize you as subscriber and forward your posting immediately, without creating any overhead.
b) If, for some reason, you cannot post from the address, by which you are subscribed, your message will be moderated to avoid spam. Please understand that moderation will often cause some delay, in particular over weekends or holydays.
----boundary-LibPST-iamunique-2112961699_-_-
Content-type: application/rtf
Content-transfer-encoding: base64
Content-Disposition: attachment; filename="rtf-body.rtf"
e1xydGYxXGFuc2lcYW5zaWNwZzEyNTJcZnJvbXRleHQgXGRlZmYwe1xmb250dGJsDQp7XGYwXGZz
d2lzcyBBcmlhbDt9DQp7XGYxXGZtb2Rlcm4gQ291cmllciBOZXc7fQ0Ke1xmMlxmbmls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lc3MsIGJ5IHdoaWNoIHlvdSBhcmUgc3Vic2NyaWJlZCwgeW91ciBtZXNzYWdlIHdp
bGwgYmUgbW9kZXJhdGVkIHRvIGF2b2lkIHNwYW0uIFBsZWFzZSB1bmRlcnN0YW5kIHRoYXQgbW9k
ZXJhdGlvbiB3aWxsIG9mdGVuIGNhdXNlIHNvbWUgZGVsYXksIGluIHBhcnRpY3VsYXIgb3ZlciB3
ZWVrZW5kcyBvciBob2x5ZGF5cy5ccGFyDQpccGFyDQp9
----boundary-LibPST-iamunique-2112961699_-_---
Received on Sun Mar 31 2002 - 18:46:09 UTC
This archive was generated by hypermail 2.3.0
: Thu Sep 26 2013 - 06:29:46 UTC