Re: strlen(), K+1: clarification



spinoza1111 <spinoza1111@xxxxxxxxx> writes:

On Feb 22, 8:32 pm, Ben Bacarisse <ben.use...@xxxxxxxxx> wrote:
spinoza1111 <spinoza1...@xxxxxxxxx> writes:

<snip>

One issue can be resolved here. By posting repeatedly but snidely
about it without clarifying things (being a hater of clarity as shown
in his harassment of Schildt), Clive has managed to confuse a parallel
I drew last month between his use of K+1 to terminate a for loop
(where the C for repeatedly evaluates the for condition while the
Visual Basic and other for statements do not) and my use, in 2003, of
a strlen() in a for condition.

Ah, at last.  Your repeated and persistent claims about the supposed
code posted by Clive Feather were, as I most people here had
concluded, not true.  There was no strlen() in the loop condition.  I
don't suppose you'll apologise for saying he made the same mistake as
you?
<snip>
I saw Clive's mistake as the same overall mistake,

It is shame that you then said it *was* the same mistake rather just a
similar one. We could have disputed the similarity. Instead we
wasted time on a fictional accusation. You even told me to go look
for it (as if I had not already done so). That was, at best,
disingenuous.

... In fact, string concatenation and strings
themselves seem to form a group, mathematically, where a null string
is the zero element and, perhaps, a string of length one is 1.

This means that...
<snip>
There is much wrong in here that I just can't face picking it apart.
I'll leave you to believe that strings + concatenation form a group
and that C can't be optimised.

If you happen to more group theory than me, I'd welcome an
explanation.

In a group, every element has a (unique) inverse under the operation.
That is the point of having an identity (and they don't need a unit).

I think you need practice in expressing yourself in
writing and comprehension: my experience on Lamma island was that
people who are deficient in these regards lose their temper and give
up.

You've kept your temper admirably.

A pat on the back and an insult all in two patronizing sentences.

But note that I didn't say "strings with concat are a group" because
I'm not a mathematician and have only an amateur's knowledge of groups
(which is more than most, but insufficient to speak with authority). I
said that because they are "like" a group,

You need help in expressing yourself. You did not say they are "like" a
group. You said they "seem to form a group". Who knows what either
of these mean. They are "like" a group except in those regards where
they are not like a group (because they aren't). They "seem to form a
group" right up to the point when you see that they don't.

--
Ben.
.



Relevant Pages

  • This Weeks Finds in Mathematical Physics (Week 226)
    ... The first week they had lots of talks on "higher-dimensional rewriting", ... to find two files that give the same bit string. ... Now, if you're a mathematician, the whole idea of a cryptographic ... You can see the algorithm for this ...
    (sci.math.research)
  • This Weeks Finds in Mathematical Physics (Week 226)
    ... The first week they had lots of talks on "higher-dimensional rewriting", ... to find two files that give the same bit string. ... Now, if you're a mathematician, the whole idea of a cryptographic ... You can see the algorithm for this ...
    (sci.physics.research)
  • Re: GDI/Screen capture
    ... "Justin Rogers" wrote: ... >> Regards, ... >> Steve. ... >> lpDriverName As String, ByVal lpDeviceName As String, ByVal lpOutput As ...
    (microsoft.public.dotnet.framework.drawing)
  • Re: Interating over the characters in a string
    ... I have a question in regards to .Net string maniplulation. ... The problem is I have a CSV parser that will successfully parse out quoted ... pairs to reprisent a single character. ...
    (microsoft.public.dotnet.framework)
  • Re: Deletion of Empty Page in the Word Document through VBA
    ... The find string "^b" is not working. ... Regards ... "Kiruthiga" wrote: ... >>> scan each and every page and finding if any empty page is there. ...
    (microsoft.public.word.vba.general)