Jump to content

Talk:Logic error

Page contents not supported in other languages.
From Wikipedia, the free encyclopedia

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)[reply]

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)[reply]

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)[reply]

Concur. Writing x+1 where x-1 would be needed is a logic error, writing x+true is a semantic error (in strongly typed languages at least). —Ruud 14:29, 10 February 2012 (UTC)[reply]