help-smalltalk
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Help-smalltalk] ContextPart>>printOn: prints incorrect line


From: Ladislav Marek
Subject: [Help-smalltalk] ContextPart>>printOn: prints incorrect line
Date: Thu, 14 Jul 2011 20:25:29 +0200

Hi,

I have observe strange behavior of MethodContext>>printOn: and
ContextPart>>currentLineInFile

Eval [
        thisContext print.
        1.
]

This code outputs: UndefinedObject>>executeStatements (test.st:3),
line is incorrect, I think it should be 2.

Eval [
        thisContext currentLineInFile printNl.
        1.
]

This code outputs: 2, as expected. I look at the
MethodContext>>printOn: method and there is
ContextPart>>currentLineInFile called, so why it outputs different
line number?



reply via email to

[Prev in Thread] Current Thread [Next in Thread]