RE: Closing a database

From: René A. Krywult <"René>
Date: Thu, 08 Jul 2004 14:59:42 +0200 (DFT)

----boundary-LibPST-iamunique-153562804_-_-
Content-type: text/plain


> Rene,
>
>Wow, quick response.
>
>So it's apparently just a question of redundancy.

That's my personal take on it. Please keep in mind, that I, like you, am only a member of the community, and not a OMI-employee.

>Agreed that you would want to export as little as needed, although it's
>only 2 pretty self evident pointers. Now I only export the table pointer
>but then have quite a number of
> db := <SybsytemModule>.rt.base;
>statements. Also a bit redundant.

Why would you want to do this?

If you use the fully qualified variable throughout your programs, you possibly have less work typing the names, but you definitely have a higher grade of readability in your code.

As far as I understand the concept of CP, I would strongly discourage assigning imported variable A to local variable B, in order to save typing time only. And if there is a very good reason beyond mere saving typing time, this reason would also suggest that you export the additional variable.

Besides that, I do not think that the case you make above is really a case at all. IN your above example, the table apparently is:

<SubsytemModule>.rt.base

So your database pointer, if you exported one, would be:

<SubsytemModule>.db

and if you wanted to assign it to local variable db (for whatever reason), you would have to type

db:= <SubsytemModule>.db;

instead of

db:=<SubsytemModule>.rt.base;

So, we are talking about an additional of 4 characters that you call "also a bit redundant"? I don't think that this is an issue.

Rene





-------------------------------------------
Versendet durch AonWebmail (webmail.aon.at)
--------------------------------------------

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-153562804_-_-
Content-type: application/rtf
Content-transfer-encoding: base64
Content-Disposition: attachment; filename="rtf-body.rtf"

e1xydGYxXGFuc2lcYW5zaWNwZzEyNTJcZnJvbXRleHQgXGRl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tZXNz
YWdlIGNvbnRhaW5pbmcgdGhlIHdvcmQgImhlbHAiIHRvIHRoZSBhYm92ZSBhZGRyZXNzLlxwYXIN
ClxwYXINClNlbmQgYW55IHByb2JsZW0gcmVwb3J0cyBvciBxdWVzdGlvbnMgcmVsYXRlZCB0byB0
aGlzIGVtYWlsIGxpc3QgdG8gdGhlIGxpc3Qgb3duZXIgYXRccGFyDQogICBvd25lci1ibGFja2Jv
eEBvYmVyb24uY2hccGFyDQpccGFyDQpDdXJyZW50IHBvc3RpbmcgcG9saWN5OlxwYXINClxwYXIN
CmEpIFRvIHBvc3QgeW91IHNob3VsZCB1c2UgdGhlIHNhbWUgYWRkcmVzcyBieSB3aGljaCB5b3Ug
YXJlIHN1YnNjcmliZWQgdG8gdGhlIG1haWxpbmcgbGlzdC4gVGhhdCB3YXksIHRoZSBsaXN0IHNl
cnZlciB3aWxsIHJlY29nbml6ZSB5b3UgYXMgc3Vic2NyaWJlciBhbmQgZm9yd2FyZCB5b3VyIHBv
c3RpbmcgaW1tZWRpYXRlbHksIHdpdGhvdXQgY3JlYXRpbmcgYW55IG92ZXJoZWFkLlxwYXINClxw
YXINCmIpIElmLCBmb3Igc29tZSByZWFzb24sIHlvdSBjYW5ub3QgcG9zdCBmcm9tIHRoZSBhZGRy
ZXNzLCBieSB3aGljaCB5b3UgYXJlIHN1YnNjcmliZWQsIHlvdXIgbWVzc2FnZSB3aWxsIGJlIG1v
ZGVyYXRlZCB0byBhdm9pZCBzcGFtLiBQbGVhc2UgdW5kZXJzdGFuZCB0aGF0IG1vZGVyYXRpb24g
d2lsbCBvZnRlbiBjYXVzZSBzb21lIGRlbGF5LCBpbiBwYXJ0aWN1bGFyIG92ZXIgd2Vla2VuZHMg
b3IgaG9seWRheX19AHVybi1QYQ=


----boundary-LibPST-iamunique-153562804_-_---
Received on Thu Jul 08 2004 - 14:59:42 UTC

This archive was generated by hypermail 2.3.0 : Thu Sep 26 2013 - 06:28:41 UTC