Subject: SDL-News: Request for more flexible initialisation of array!
dagbjorn#telox.no
Date: Fri Nov 28 1997 - 14:10:43 GMT
The originator of this message is responsible for its content.
-----From dagbjorn#telox.no to sdlnews -----
Dear Q.6/10,
There is an annoying restriction wrt initialisation of arrays which
I would like to see removed in SDL-2000. In current version of SDL,
it is only possible to initialise all elements of an array to one and
the same value. To initialise each element to a different value, a number
of tasks must be specified which are executed in run-time. Cumbersome
and expensive!
If an array type is defined which may contain up to 12 integers, I
would simply like to write:
DCL daysOfMonth Int12ArrType := (. 31, 28, 31, 30, 31, 30, 31, 31, 30,
31, 30, 31 .);
or
TASK daysOfMonth := (. 31, 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31 .);
instead of 12 task statements like
TASK daysOfMonth(1) := 31,
daysOfMonth(2) := 28,
...
It should be allowed to only initialise an array partly.
Best regards
Dagbjoern Nogva
------------------------------------------------------------------------
Dagbjoern Nogva
Telox A/S, PO Box 67, N-1361 Billingstad, Norway
Phone: +47 66 98 25 18
Fax: +47 66 98 25 28
E-mail: dagbjorn#telox.no
WWW: http://www.telox.no
------------------------------------------------------------------------
-----End text from dagbjorn#telox.no to sdlnews -----
For help, email "majordomo#sdl-forum.org" with the body of your email as:
help
or (iff this does not answer your question) email: owner-sdlnews#sdl-forum.org
This archive was generated by hypermail 2a23 : Sun Jun 16 2013 - 10:41:40 GMT