This is the mail archive of the fortran@gcc.gnu.org mailing list for the GNU Fortran project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [wwwdocs, Patch] gcc-4.6/changes.html: Minor Fortran update


On Sat, 29 Jan 2011, Tobias Burnus wrote:
> Am 28.01.2011 23:18, schrieb Gerald Pfeifer:
>> +	allocated (if unallocated) or reallocated (if the shape or type
>> +	parameter is different). To avoid the small performance penalty,
>> +	you can use for arrays and character strings<code>a(:) = ...</code>
>> +	instead of<code>a = ...</code>  &ndash; or disable the feature using
>> +<code>-std=f95</code>  or<code>-fno-realloc-lhs</code>.</li>
>> 
>> I believe in English we better say "for arrays and ... you can use ...
>> instead of ... "
> It is not clear to me whether you suggest:
> "To avoid the small performance penalty, for arrays ..."
> or
> "To avoid the small performance penalty for arrays ..."
> I think the first one sounds also a bit awkward while the second one changes
> the meaning.
> 
> I mean - and read my version such - that using reallocate on assignment 
> has a small performance penalty, but for arrays and character strings 
> one can avoid it. In particular, for noncharacter scalar (allocatable) 
> variables one can not (except by disabling the feature completely).

Let me try to be more clear.  "You can use for arrays" only works in
English if there is the concept of a "for array", otherwise this looks
like a Germanism.


So that would become

  "To avoid the small performance penalty, for arrays and
  character strings you can use <code>a(:) =...</code> instead
  of <code>a = ...</code>.  You can also disable..."

or

  "To avoid the small performance penalty, you can use
  <code>a(:) =...</code> instead of <code>a = ...</code> for
  arrays and character strings.  You can also disable..."

Or, of course

  "You can use <code>a(:) =...</code> instead of <code>a = ...</code>
  for arrays and characters strings to avoid the small performance
  penalty.  You can also disable..."

Hope this clarifies?

Gerald


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]