help-octave
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

implementation of char()


From: Thorsten Meyer
Subject: implementation of char()
Date: Sat, 15 Nov 2008 10:17:59 +0100
User-agent: Mozilla-Thunderbird 2.0.0.17 (X11/20081018)

Hi,

I have a question regarding the implementation of the char() function:

in the source code (in src/strfns.cc) for char() the one argument case is 
treated specially:
 - for one argument, the convert_to_str method is used directly with three 
arguments, the third
being args(0).is_dq_string () ? '"' : '\''
 - for more than one argument, the all_strings method is used for each argument 
individually, and
within all_strings (defined in ovbase.cc) convert_to_str is used with two 
arguments.

What is the purpose of this special treatment of the on argument case?

thanks and regards

Thorsten



reply via email to

[Prev in Thread] Current Thread [Next in Thread]