The following naive proc generates an internal error /usr/lib/nim/system/io.nim(911, 10) Error: internal error: proc has no result symbol No stack traceback available To create a stacktrace, rerun compilation with './koch temp c <file>', see https://nim-lang.github.io/Nim/intern.html#debugging-the-compiler for details Run import os, strutils var Inp = stdin proc Read(Input:File) = for L in Input.lines.strip : echo L Read(stdin) Run
By the way, is there a means to strip the input lines directly instead of var LS = L.strip Run nim --version Nim Compiler Version 1.5.1 [Linux: amd64] Compiled at 2020-11-18 Copyright (c) 2006-2020 by Andreas Rumpf git hash: 5ccfc8ccdc4b57506e5d61dcae69e902260cfd6e active boot switches: -d:release Run Many thanks for a hint, Helmut