(unknown charset) Re: [BLACKBOX] ARRAY as CONSTANT

From: (unknown charset) Oleg N. Cher <"Oleg>
Date: Wed, 13 Feb 2008 06:28:28 +0200

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

Dear Aubrey,

>Why not do it either of the ways that were suggested by people who
>have experience with BlackBox?

Well,
yes, we can easily read the data from file.
And this way remains unique. We do not have a acceptable method
to add information directly in the code of the module!

And yes, we can fill array in runtime like this:

a[0] := 1;
a[1] := 100;
a[2] := 51;
a[3] := 5;
...
a[10000] := 57;

Or this:
> InitOne (a[0], 1);
> InitOne (a[1], 2);
> InitOne (a[2], 3);
> InitOne (a[3], 4);
> InitOne (a[4], 5);
   ...
   InitOne (a[10000], 100);

What we will have? 60 Kb of machine code produces 10 Kb of data.
                   ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
Where here is good sense to copy information from one place to another?

Looks good a method to work with data as with resources,
but it's platform dependent. (link to exe, and call WinApi functions).

If people during work invent tricks, is the index of insufficiency
of facilities. IMHO.

Have a good day.


Oleg N. Cher,
Colossoft Research.
allot{([at]})nowhere.xy
2008-02-13


----
To unsubscribe, send a message with body "SIGNOFF BLACKBOX" to LISTSERV{([at]})nowhere.xy----boundary-LibPST-iamunique-2107989097_-_-
Content-type: application/rtf
Content-transfer-encoding: base64
Content-Disposition: attachment; filename="rtf-body.rtf"
e1xydGYxXGFuc2lcYW5zaWNwZzEyNTFcZnJvbXRleHQgXGRlZmYwe1xmb250dGJsDQp7XGYwXGZz
d2lzcyBBcmlhbDt9DQp7XGYxXGZtb2Rlcm4gQ291cmllciBOZXc7fQ0Ke1xmMlxmbmlsXGZjaGFy
c2V0MiBTeW1ib2w7fQ0Ke1xmM1xmbW9kZXJuXGZjaGFyc2V0MCBDb3VyaWVyIE5ldzt9fQ0Ke1xj
b2xvcnRibFxyZWQwXGdyZWVuMFxibHVlMDtccmVkMFxncmVlbjBcYmx1ZTI1NTt9DQpcdWMxXHBh
cmRccGxhaW5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ZiBkYXRhLlxwYXINCiAg
ICAgICAgICAgICAgICAgICBeXl5eXl5eXl5eXl5eXl5eXl5eXl5eXl5eXl5eXl5eXl5eXl5eXl5e
Xl5eXlxwYXINCldoZXJlIGhlcmUgaXMgZ29vZCBzZW5zZSB0byBjb3B5IGluZm9ybWF0aW9uIGZy
b20gb25lIHBsYWNlIHRvIGFub3RoZXI/XHBhcg0KXHBhcg0KTG9va3MgZ29vZCBhIG1ldGhvZCB0
byB3b3JrIHdpdGggZGF0YSBhcyB3aXRoIHJlc291cmNlcyxccGFyDQpidXQgaXQncyBwbGF0Zm9y
bSBkZXBlbmRlbnQuIChsaW5rIHRvIGV4ZSwgYW5kIGNhbGwgV2luQXBpIGZ1bmN0aW9ucykuXHBh
cg0KXHBhcg0KSWYgcGVvcGxlIGR1cmluZyB3b3JrIGludmVudCB0cmlja3MsIGlzIHRoZSBpbmRl
eCBvZiBpbnN1ZmZpY2llbmN5XHBhcg0Kb2YgZmFjaWxpdGllcy4gSU1ITy5ccGFyDQpccGFyDQpI
YXZlIGEgZ29vZCBkYXkuXHBhcg0KXHBhcg0KXHBhcg0KT2xlZyBOLiBDaGVyLFxwYXINCkNvbG9z
c29mdCBSZXNlYXJjaC5ccGFyDQphbGxvdEB1a3IubmV0XHBhcg0KMjAwOC0wMi0xM1xwYXINClxw
YXINClxwYXINCi0tLS1ccGFyDQpUbyB1bnN1YnNjcmliZSwgc2VuZCBhIG1lc3NhZ2Ugd2l0aCBi
b2R5ICJTSUdOT0ZGIEJMQUNLQk9YIiB0byBMSVNUU0VSVkBMSVNUUy5PQkVST04uQ0h9fQAWBx8A
----boundary-LibPST-iamunique-2107989097_-_---
Received on Wed Feb 13 2008 - 05:28:28 UTC

This archive was generated by hypermail 2.3.0 : Thu Sep 26 2013 - 06:31:03 UTC