FUDforum
Fast Uncompromising Discussions. FUDforum will get your users talking.

Home » Imported messages » comp.lang.php » error message I don understand
Show: Today's Messages :: Polls :: Message Navigator
Return to the default flat view Create a new topic Submit Reply
Re: error message I don understand [message #174890 is a reply to message #174889] Sat, 16 July 2011 12:52 Go to previous messageGo to previous message
The Natural Philosoph is currently offline  The Natural Philosoph
Messages: 993
Registered: September 2010
Karma:
Senior Member
liebling(dot)kreuzberg(at)gmail(dot)com wrote:
> The Natural Philosopher wrote:
>
>> VanguardLH wrote:
>>> liebling.kreuzberg wrote:
>>>
>>>> Natural Philosopher wrote:
>>>>
>>>> > Odd, since I said exactly the same thing, with added humour.
>>>> Hmmm, strange form of humour. Not my cup of ........
>>>> Maybe due to the fact that Englis (nor American) is not my mothertongue.
>>> Natural posted 2 hours *after* Billy and, of course, we're supposed to
>>> assume that he didn't see Billy's reply to spur him onto the same
>>> solution but differently composed.
>>>
>>> In some programming languages, the "=" is not an assignment operator
>>> when its context is within the conditional clause. In others, it is an
>>> assignment operator (followed by a Boolean test for true or false) and
>>> is sometimes used as a cheat but usually for the right-side operand. If
>>> you had reversed the left- and right-side operands you wouldn't get an
>>> error in all languages and instead might get an assignment that you
>>> didn't expect along with an action by the 'if' that was unplanned.
>>>
>>> Sometimes another pair of eyes will see your mistake. Too often your
>>> eyes see what your mind expects to see. Bouncing between multiple
>>> programming languages doesn't help, either. Don't let Natural fool you:
>>> this is a mistake common to ALL programmers and shows up often enough
>>> that all of them recognize the mistake because it wasn't so long ago
>>> since they made that same mistake.
>> Ah but when I first made it it was because I didn't know better
>>
>> Today its just a typo.;-)
>
> Never mind, I learned something I didn't know and that is a win.
>
> BR, Schimanski
>


Well you got your answer, I had some fun, reminiscing about the first
uncertain steps we all take in programming, and no harm was done, so a
win win hopefully.

I remember many years ago I went back to sort out some issues in some C
code..someone else had taken ober

" I see you don't like using the 'switch..case' statement, its all
nested 'if then else' here'

"No, I like it. Then I wasn't sure of the syntax, and I was under heavy
pressure to get this working, so I used what I was familiar with".

(I didn't want to tell her it was in fact the first commercial C code I
had ever written).
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Ouion Movement, Roun Time (Floating Point Time)
Next Topic: [MEMCACHED] Is there a way to get the expiration of a key?
Goto Forum:
  

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ]

Current Time: Sat Nov 30 07:32:26 GMT 2024

Total time taken to generate the page: 0.04178 seconds