[sv-ec] 5.13 Built-in methods

From: Bresticker, Shalom <shalom.bresticker_at_.....>
Date: Mon May 26 2008 - 02:06:25 PDT
Hi,

5.13 says,

In general, a built-in method is preferred over a system task when a
particular functionality applies to all data types or when it applies to
a specific data type.

Is it just me, or does that sentence sound funny to others as well?

Also, 5.13 continues,

For example:

dynamic_array.size, associative_array.num, and string.len

These are all similar concepts, but they represent different things. A
dynamic array has a size, an associative array contains a given number
of items, and a string has a given length. Using the same system task,
such as $size, for all of them would be less clear and intuitive.

Yet we have added the size() method for associative arrays. Queues have
them also.
It has also been proposed several times to define this method for
fized-size arrays as well.

Shalom

Shalom Bresticker
Intel Jerusalem LAD DA
+972 2 589-6582
+972 54 721-1033

---------------------------------------------------------------------
Intel Israel (74) Limited

This e-mail and any attachments may contain confidential material for
the sole use of the intended recipient(s). Any review or distribution
by others is strictly prohibited. If you are not the intended
recipient, please contact the sender and delete all copies.

-- 
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.
Received on Mon May 26 02:08:22 2008

This archive was generated by hypermail 2.1.8 : Mon May 26 2008 - 02:09:05 PDT