Re: Fastcode Voting - IntToStr Result Length Rule



> Let us vote for a rule regarding the length of the result string in
> IntToStr
>
> 1) Result Length must be the exact length of the result eg Result :=
> 'ABC' + #0 => Length(Result) = 4.
> 2) Use global rule
> 3) Allow Length(Result) to be the max length of the result always eg.
> Length(Result) = 11 always.
>
> Please rephrase the rule suggestions and vote.

Since i think it's good to use consistent rules i vote for (2). Option
(1) is more strict than needed. Option (3) potentially wastes memory
and may not be acceptable for Borland (if i knew it were acceptable i
would vote for it BTW).

I think adding an extra challenge like Aleks suggested is a bad idea.
Even though it's easy to implement this is the B&V people shouldn't
have to choose; Fastcode should provide the fasted function (according
to our benchmark) that does the specified job within the specified
constraints.

Current results (with the new wordings; voters please correct me if i'm
wrong):

1) Allocate result string of needed length exactly.

2) Allocate result string of length according our global rule and then
correct length to valid value

Avatar
Dennis

3) Always allocate result string of length 11 and then correct length
to
valid value

Dave
Eric
Pierre

4) Different challenges for rules 2 and 3

Aleksander
.



Relevant Pages

  • Re: NBC: Bush as the new Saddam
    ... three explanations: ... I can't believe you wasted your vote on a man who is not even smart enough ... to string together a few sentences. ... Bill Longyard ...
    (rec.music.artists.springsteen)
  • Re: More US bashing ?
    ... responsible for 99% of crime being allowed to vote. ... string them up from the nearest tree, rather than give them the vote, ... I'd prefer to return America to an ethnology ...
    (rec.autos.sport.f1)
  • Re: how to insert space in a string
    ... The basic technique is to scan the string, char by char, and depending ... A vote for McCain is fearful clinging to McSame. ... right, the method indexOf is exactly what I need, and thx Mark for ...
    (comp.lang.java.programmer)
  • Re: Fastcode Voting - IntToStr Result Length Rule
    ... > Please rephrase the rule suggestions and vote. ... Allocate result string of needed length exactly. ... Allocate result string of length according our global rule ...
    (borland.public.delphi.language.basm)
  • Re: Fastcode Voting - IntToStr Result Length Rule
    ... Allocate result string of needed length exactly. ... Allocate result string of length according our global rule ... Vote: Dennis ...
    (borland.public.delphi.language.basm)