On Thu, 2 May 2019, Allin Cottrell wrote:

> On Thu, 2 May 2019, Sven Schreiber wrote:
>
>> not sure why the following fails, given the documentation of 'argname':
>> 
>> <hansl>
>> function void ch(matrix m[null], string s[null])
>>  if exists(m)
>>    eval argname(m)
>>  elif exists(s)
>>    eval argname(s)
>>  endif
>> end function
>> 
>> string s_in = "hey"
>> ch(, s_in) # error, expect "s_in"
>
> This is due to an ambivalence specific to string variables.

Well, I now think this (mis)behavior is new, fallout from my recent 
addition of an optional second argument to argname(). I'll work on a 
fix.

Allin

Reply via email to