<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Question about substrings in Intel® Fortran Compiler</title>
    <link>https://community.intel.com/t5/Intel-Fortran-Compiler/Question-about-substrings/m-p/783325#M28819</link>
    <description>It worked in CVF, as far as I know.
&lt;DIV&gt;&lt;/DIV&gt;</description>
    <pubDate>Thu, 03 Jun 2004 21:53:35 GMT</pubDate>
    <dc:creator>Steven_L_Intel1</dc:creator>
    <dc:date>2004-06-03T21:53:35Z</dc:date>
    <item>
      <title>Question about substrings</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/Question-about-substrings/m-p/783317#M28811</link>
      <description>&lt;DIV&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;/DIV&gt;
&lt;P&gt;The documentations states that for a character string of the form &lt;/P&gt;
&lt;P&gt;v(e1:e2)&lt;/P&gt;
&lt;P&gt;"Both e1 and e2 must be within the range 1,2, ..., len, where len is the length of the parent character string. If e1 exceeds e2, the substring has length zero. &lt;/P&gt;
&lt;P&gt;So is it safe to have a substring of length 0? I.e., I have code like:&lt;/P&gt;
&lt;P&gt;l=len_trim(string) !where string is all blank &lt;/P&gt;
&lt;P&gt;call sub(string(1:L)) &lt;/P&gt;
&lt;P&gt;where sub is like &lt;/P&gt;
&lt;P&gt;subroutine sub(string) &lt;/P&gt;
&lt;P&gt;character string*(*)&lt;/P&gt;
&lt;P&gt;if (len_trim(string) .gt.0) then &lt;/P&gt;
&lt;P&gt; do stuff &lt;/P&gt;
&lt;P&gt;endif&lt;BR /&gt;end &lt;/P&gt;
&lt;P&gt;It works, but can it lead to trouble? Do I have to check for this?&lt;/P&gt;</description>
      <pubDate>Thu, 03 Jun 2004 20:50:17 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/Question-about-substrings/m-p/783317#M28811</guid>
      <dc:creator>Intel_C_Intel</dc:creator>
      <dc:date>2004-06-03T20:50:17Z</dc:date>
    </item>
    <item>
      <title>Re: Question about substrings</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/Question-about-substrings/m-p/783318#M28812</link>
      <description>&lt;DIV&gt;I have no idea how this got in here 3 times.. Sorry.&lt;/DIV&gt;</description>
      <pubDate>Thu, 03 Jun 2004 20:52:32 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/Question-about-substrings/m-p/783318#M28812</guid>
      <dc:creator>Intel_C_Intel</dc:creator>
      <dc:date>2004-06-03T20:52:32Z</dc:date>
    </item>
    <item>
      <title>Re: Question about substrings</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/Question-about-substrings/m-p/783319#M28813</link>
      <description>&lt;P&gt;It's [supposed to be *] safe. Of course, you can't do much with such a string, but LEN and LEN_TRIM will return 0 and assignment will be a no-op. I don't have Standard handy, but I suppose you shouldn't try internal WRITE on it.&lt;/P&gt;
&lt;P&gt;Jugoslav&lt;/P&gt;
&lt;P&gt;*) However, the feature in question looks like a fertile ground for compiler bugs -- I'm not saying there is an actual one in CVF or IVF, just that it looks obscure enough that it can be a good candidate for overlooking.&lt;/P&gt;</description>
      <pubDate>Thu, 03 Jun 2004 20:58:32 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/Question-about-substrings/m-p/783319#M28813</guid>
      <dc:creator>Jugoslav_Dujic</dc:creator>
      <dc:date>2004-06-03T20:58:32Z</dc:date>
    </item>
    <item>
      <title>Re: Question about substrings</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/Question-about-substrings/m-p/783320#M28814</link>
      <description>P.S. You (only you and Steve as administrator) can go back to extra posts and delete them while logged in.
&lt;DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Thu, 03 Jun 2004 20:59:41 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/Question-about-substrings/m-p/783320#M28814</guid>
      <dc:creator>Jugoslav_Dujic</dc:creator>
      <dc:date>2004-06-03T20:59:41Z</dc:date>
    </item>
    <item>
      <title>Re: Question about substrings</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/Question-about-substrings/m-p/783321#M28815</link>
      <description>&lt;DIV&gt;I'm not sure users can delete their own posts. I'll take care of it.&lt;/DIV&gt;</description>
      <pubDate>Thu, 03 Jun 2004 21:05:20 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/Question-about-substrings/m-p/783321#M28815</guid>
      <dc:creator>Steven_L_Intel1</dc:creator>
      <dc:date>2004-06-03T21:05:20Z</dc:date>
    </item>
    <item>
      <title>Re: Question about substrings</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/Question-about-substrings/m-p/783322#M28816</link>
      <description>&lt;DIV&gt;This is legal in Fortran 90. If the end position is less than the start position, the string has zero length. F77 did not allow for this, however, so old compilers may behave erratically with zero-length strings.&lt;/DIV&gt;</description>
      <pubDate>Thu, 03 Jun 2004 21:07:01 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/Question-about-substrings/m-p/783322#M28816</guid>
      <dc:creator>Steven_L_Intel1</dc:creator>
      <dc:date>2004-06-03T21:07:01Z</dc:date>
    </item>
    <item>
      <title>Re: Question about substrings</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/Question-about-substrings/m-p/783323#M28817</link>
      <description>&lt;EM&gt;I'm not sure users can delete their own posts. I'll take care of it.&lt;/EM&gt;
&lt;DIV&gt;&lt;/DIV&gt;
&lt;DIV&gt;They can -- I did it myself several times before (when accidental multiposting occurred). I didn't test if it makes difference when the message is first in the thread.&lt;/DIV&gt;
&lt;DIV&gt;&lt;/DIV&gt;
&lt;DIV&gt;Jugoslav&lt;/DIV&gt;</description>
      <pubDate>Thu, 03 Jun 2004 21:19:48 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/Question-about-substrings/m-p/783323#M28817</guid>
      <dc:creator>Jugoslav_Dujic</dc:creator>
      <dc:date>2004-06-03T21:19:48Z</dc:date>
    </item>
    <item>
      <title>Re: Question about substrings</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/Question-about-substrings/m-p/783324#M28818</link>
      <description>&lt;DIV&gt;Thanks; it's a real convenience for me when intrepreting arbitrary (possibly long) format-free user input strings. I don't believe it worked this way in CVF.&lt;/DIV&gt;
&lt;DIV&gt;&lt;/DIV&gt;
&lt;DIV&gt;I tried to find a way to delete the extras, but couldn't figure out how.&lt;/DIV&gt;</description>
      <pubDate>Thu, 03 Jun 2004 21:47:30 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/Question-about-substrings/m-p/783324#M28818</guid>
      <dc:creator>Intel_C_Intel</dc:creator>
      <dc:date>2004-06-03T21:47:30Z</dc:date>
    </item>
    <item>
      <title>Re: Question about substrings</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/Question-about-substrings/m-p/783325#M28819</link>
      <description>It worked in CVF, as far as I know.
&lt;DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Thu, 03 Jun 2004 21:53:35 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/Question-about-substrings/m-p/783325#M28819</guid>
      <dc:creator>Steven_L_Intel1</dc:creator>
      <dc:date>2004-06-03T21:53:35Z</dc:date>
    </item>
    <item>
      <title>Re: Question about substrings</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/Question-about-substrings/m-p/783326#M28820</link>
      <description>&lt;DIV&gt;&lt;/DIV&gt;
&lt;P&gt;&lt;STRONG&gt;[Doesn't really matter, but for information] &lt;/STRONG&gt;"Delete message" option can be found under "Options" "menu" on the blue header of each message. It is active only if it is your message and you're logged in.&lt;/P&gt;
&lt;P&gt;Jugoslav&lt;/P&gt;
&lt;P&gt;&lt;EDITED&gt;&lt;/EDITED&gt;&lt;/P&gt;&lt;P&gt;Message Edited by JugoslavDujic on &lt;SPAN class="date_text"&gt;06-18-2004&lt;/SPAN&gt; &lt;SPAN class="time_text"&gt;10:56 AM&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 03 Jun 2004 22:41:27 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/Question-about-substrings/m-p/783326#M28820</guid>
      <dc:creator>Jugoslav_Dujic</dc:creator>
      <dc:date>2004-06-03T22:41:27Z</dc:date>
    </item>
    <item>
      <title>Re: Question about substrings</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/Question-about-substrings/m-p/783327#M28821</link>
      <description>&lt;DIV&gt;Actually, it seems to appear under options only if it's yours AND you are still in the session that created it. Can't come back to it later....&lt;/DIV&gt;</description>
      <pubDate>Thu, 17 Jun 2004 23:21:07 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/Question-about-substrings/m-p/783327#M28821</guid>
      <dc:creator>Intel_C_Intel</dc:creator>
      <dc:date>2004-06-17T23:21:07Z</dc:date>
    </item>
    <item>
      <title>Re: Question about substrings</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/Question-about-substrings/m-p/783328#M28822</link>
      <description>&lt;P&gt;Dunno -- I've just successfully edited myprevious message from this thread, couple of weeks old.&lt;/P&gt;
&lt;P&gt;Jugoslav&lt;/P&gt;
&lt;DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Fri, 18 Jun 2004 15:56:53 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/Question-about-substrings/m-p/783328#M28822</guid>
      <dc:creator>Jugoslav_Dujic</dc:creator>
      <dc:date>2004-06-18T15:56:53Z</dc:date>
    </item>
    <item>
      <title>Re: Question about substrings</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/Question-about-substrings/m-p/783329#M28823</link>
      <description>I still can't do it.....
&lt;DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Fri, 18 Jun 2004 23:34:48 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/Question-about-substrings/m-p/783329#M28823</guid>
      <dc:creator>Intel_C_Intel</dc:creator>
      <dc:date>2004-06-18T23:34:48Z</dc:date>
    </item>
  </channel>
</rss>

