- Dialog: Copying data in order to display it
----boundary-LibPST-iamunique-59527889_-_-
Content-type: text/plain
Folks,
The module Dialog exports the following update functions
PROCEDURE Update (IN interactor: ANYREC);
PROCEDURE UpdateList (IN interactor: ANYREC);
PROCEDURE UpdateBool (VAR b: BOOLEAN);
PROCEDURE UpdateInt (VAR i: INTEGER);
PROCEDURE UpdateLInt (VAR l: LONGINT);
PROCEDURE UpdateReal (VAR r: REAL);
There are no Updates for
2. SHORTCHAR the characters of the Latin?1 character set (0X .. 0FFX)
3. CHAR the characters of the Unicode character set (0X .. 0FFFFX)
4. BYTE the integers between MIN(BYTE) and MAX(BYTE)
5. SHORTINT the integers between MIN(SHORTINT) and MAX(SHORTINT)
8. SHORTREAL the real numbers between MIN(SHORTREAL) and MAX(SHORTREAL),
the value INF
10.SET the sets of integers between 0 and MAX(SET)
This seems(?) to necessitate 'copying' those data types to a record,
rec, and then calling Update(rec). That is inefficient and violates
the following principle.
GUI PRINCIPLE
Any module M should be displayable in a form F via a module D without
copying any fields of M into D.
Can this principle be realized in BlackBox? If not why not?
If one must copy then F must reference both M and D which seems unclean
(or all displayed exports of M must be copied to D and then only D is
referenced in F).
It copying can be avoided then F can reference the M data directly and
only the guards and notifiers need reside in D. This would provide a
clean separation of disciplines.
-Doug Danforth
--- BlackBox
--- send subject HELP or UNSUBSCRIBE to blackbox{([at]})nowhere.xy
----boundary-LibPST-iamunique-59527889_-_-
Content-type: application/rtf
Content-transfer-encoding: base64
Content-Disposition: attachment; filename="rtf-body.rtf"
e1xydGYxXGFuc2lcYW5zaWNwZzEyNTJcZnJvbXRleHQgXGRlZmYwe1xmb250dGJsDQp7XGYwXGZz
d2lzc1xmY2hhcnNldDAgQXJpYWw7fQ0Ke1xmMVxmbW9kZXJuIENvdXJpZXIgTmV3O30NCntcZjJc
Zm5pbFxmY2hhcnNldDIgU3ltYm9sO30NCntcZjNcZm1vZGVyblxmY2hhcnNldDAgQ291cmllciBO
ZXc7fX0NCntcY29sb3J0YmxccmVkMF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GRpcmVjdGx5IGFuZCBccGFyDQpvbmx5IHRoZSBndWFyZHMgYW5kIG5vdGlmaWVycyBuZWVk
IHJlc2lkZSBpbiBELiAgVGhpcyB3b3VsZCBwcm92aWRlIGEgXHBhcg0KY2xlYW4gc2VwYXJhdGlv
biBvZiBkaXNjaXBsaW5lcy5ccGFyDQpccGFyDQotRG91ZyBEYW5mb3J0aFxwYXINClxwYXINCi0t
LSBCbGFja0JveFxwYXINCi0tLSBzZW5kIHN1YmplY3QgSEVMUCBvciBVTlNVQlNDUklCRSB0byBi
bGFja2JveEBvYmVyb24uY2h9fQAAENZSABzjE2FH
----boundary-LibPST-iamunique-59527889_-_---
Received on Wed May 25 2005 - 17:48:08 UTC
This archive was generated by hypermail 2.3.0
: Thu Sep 26 2013 - 06:28:14 UTC