trill-lang / trill

A type safe, compiled language inspired by (and written in) Swift
MIT License
275 stars 15 forks source link

Arrays of strings crash LLVM #40

Closed segiddins closed 7 years ago

segiddins commented 7 years ago
func main() {
  let x = ["1", "2", "3"]
  println(x)
  Mirror(reflecting: x).print(to: stdout)
  println("")
}

crashes when emitting an object file / running the JIT

harlanhaskins commented 7 years ago

The array implementation is ridiculously half-baked and bad. I actually think now that we bundle the stdlib that we should just make this an AnyArray, and soon after an Array<T>

harlanhaskins commented 7 years ago

Closing in favor of #59