Talk:Logic error
Appearance
This article is rated Stub-class on Wikipedia's content assessment scale. It is of interest to the following WikiProjects: | ||||||||||||||||||
|
Clarity
[edit]Example needs better explanation. I had to read it 3 or 4 times to understand what it was intended to do. (And I have 25 years programming experience! :-) --Uncle Ed 17:38, 16 November 2006 (UTC)
- Responding to Yuser's msg on my talk page...
- I would abstract out the essential part of the logic error, perhaps in a method rather than an entire program. --Uncle Ed 15:02, 17 November 2006 (UTC)
Logic vs. semantic error
[edit]Should it be mentioned that in some cases term "semantic error" means something very different than logic error? One phase in compilation is called "semantic analysis" (see [1]) and errors which occur in this phase are also called "semantic errors". —Preceding unsigned comment added by 81.175.179.250 (talk) 05:50, 12 May 2010 (UTC)
- Concur. Writing
x+1
wherex-1
would be needed is a logic error, writingx+true
is a semantic error (in strongly typed languages at least). —Ruud 14:29, 10 February 2012 (UTC)