-----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 Thu Apr 26 20:54:38 2007
This archive was generated by hypermail 2.1.8 : Thu Apr 26 2007 - 20:55:01 PDT