Path: csiph.com!eternal-september.org!feeder.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail From: $Bill Newsgroups: comp.lang.javascript Subject: Re: How to write object-oriented JS function? Date: Tue, 4 Oct 2016 00:46:21 -0700 Organization: A noiseless patient Spider Lines: 24 Message-ID: References: <78daa021-c64d-4017-b761-17ea13fdcaee@googlegroups.com> <44hvub55bdcc6ca2lcivhfu3qs1ss39b1g@4ax.com> <1dee4fbb-163e-40d4-b901-9dedeacc3e92@googlegroups.com> <097196c0-218d-4cce-8eb7-13e47fac5468@googlegroups.com> <6194vb178d81b2mrgg8viikpgoqusvv9il@4ax.com> <9n94vbd04gmdirnh7chp9jeqo6kp5i3n75@4ax.com> <8i75vbd14a0cooqv29uu5uobl0tv8vvhgs@4ax.com> Mime-Version: 1.0 Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 7bit Injection-Date: Tue, 4 Oct 2016 07:46:10 -0000 (UTC) Injection-Info: mx02.eternal-september.org; posting-host="eb0a2afd2d39dcaa817ad5aefda0318f"; logging-data="7402"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX18dyLuNEPDGnPuRvZUjIQjE2d8FPWxPRIk=" User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:45.0) Gecko/20100101 Thunderbird/45.4.0 In-Reply-To: Cancel-Lock: sha1:ryZxPyjTilwoNXxeGWXMYp7Y81o= Xref: csiph.com comp.lang.javascript:31506 On 10-04-16 00:16, Evertjan. wrote: > $Bill wrote on 04 Oct 2016 in comp.lang.javascript: > >> On 10-03-16 15:22, $Bill wrote: >>> On 10-03-16 14:46, Evertjan. wrote: > [..] >>>> Same problem: >>>> >>>> jag.cnt = 1; >>>> if (jag.cnt == 20) >>>> >>>> Seems to me NOW the if-condition is NEVER true. >>> >>> Unless there's an increment of jag.cnt like below. >> >> PS: And the two stmts aren't literally following each other as shown. > > Ah yes: "Unless the code is different". > > In another field, that is called "apologetics" ;-) No, it's called clarification of an assumption I made. I don't believe for a second that those two stmts literally follow each other in the actual code, but you can never be sure can you.