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?

_______________________________________________
help-smalltalk mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/help-smalltalk

Reply via email to