Hi again,
so I've revisited the whole story about default function arguments. Some
time ago it was decided that for 'string' and 'matrix' types it is
possible to mark them as optional by appending '[null]', without using
pointers (which is still possible).
The same trick doesn't work for the array types 'strings' or
'matrices'
(or 'bundles', for that matter). Is there a specific reason?
To be clear, this does NOT work:
<hansl-fail>
function void ch2( strings ss[null])
if exists(ss)
print "exists"
elif !isnull(ss)
print "isn't null"
endif
end function
ch2()
</hansl-fail>
It would sometimes come in handy for optional array arguments.
thanks,
sven