Re: [sv-bc] FW: Strings and string parameters

From: Neil Korpusik <Neil.Korpusik_at_.....>
Date: Tue May 01 2007 - 14:54:16 PDT
Hi Geoffrey,

I believe that this one belongs in the svec, for the same reasons
that 1789 belongs in the svec.

Neil



Bresticker, Shalom wrote On 04/26/07 20:54,:
> 
> -----Original Message-----
> From: geoffrey.coram@analog.com [mailto:geoffrey.coram@analog.com] 
> Sent: Thursday, April 26, 2007 5:41 PM
> To: Bresticker, Shalom; Maidment, Matthew R
> Subject: Strings and string parameters
> 
> In the AMS committee this morning, it was requested
> that one be able to initialize a string using a
> string parameter.  This seems to be missing from SV,
> which says:
> 
>   The syntax to declare a string variable is as follows:
>     string variable_name [= initial_value];
>   where variable_name is a valid identifier and the
>   optional initial_value can be a string literal or the
>   value "" for an empty string.
> 
> It says nothing about a string parameter, nor, in fact,
> other string variables:
>     string str1 = "hi";
>     string str2 = str1;
> 
> I think this would have to go through the SV-BC, right?
> 
> Since "string" is a data_type, I presume one can declare
> a string parameter in SV, though I don't see any examples;
> it should probably be made clear somewhere that a string
> literal default value for a string parameter is also run
> through the conversion process (stripping \0).
> 
> -Geoffrey
> 


-- 
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.
Received on Tue May 1 14:54:40 2007

This archive was generated by hypermail 2.1.8 : Tue May 01 2007 - 14:54:58 PDT