timotheecour / Nim

Nim is a compiled, garbage-collected systems programming language with a design that focuses on efficiency, expressiveness, and elegance (in that order of priority).
http://nim-lang.org/
Other
2 stars 0 forks source link

csources2 #251

Open timotheecour opened 4 years ago

timotheecour commented 4 years ago

links

features needed during bootstrap

arguments in reply to: https://github.com/nim-lang/Nim/issues/16211#issuecomment-738337224

That's not an answer, that is avoiding an answer. Which language features past 1.0 are useful inside the Nim compiler? Again, library additions don't count, we can use pretty much all of them.

timotheecour commented 3 years ago
timotheecour commented 3 years ago

nim c main gives: Error: undeclared identifier: 'bar' for nim 1.2 (and bin/nim_csources_a8a5241f9475099c823cfe1a5e0ca4022ac201ff), but works with 1.4; this caused me to use a workaround (if false) in https://github.com/nim-lang/Nim/pull/17468

proc foo*[T](a: T) =
  runnableExamples("-r:off"):
    bar()
  discard

proc bar*() = discard