XL (programming language): Difference between revisions

Content deleted Content added
m Type-safe variable argument lists: <source lang="pascal">
m Type system: <source lang="ada">
Line 116:
 
This also applies to generic types that have parameters, such as <code>array</code>. A function computing the sum of the elements in any array can be written as follows:
<source lang="ada">
 
function Sum(A : array) return array.Item is
for I in 0..array.Size-1 loop
result += A[I]
</source>
 
===Type-safe variable argument lists===