Can't create sequence with newSeq

2021-07-11 Thread Stefan_Salewski
All fine: type Matrix* = object numRows* : int numCol* : int data : seq[float] var m = newSeq[Matrix](3) Run

Can't create sequence with newSeq

2021-07-11 Thread Gadersd
Renaming the file to matrix.nim solved my problem. Thanks!

Can't create sequence with newSeq

2021-07-11 Thread ElegantBeef
Do you have `Matrix` declared in `Matrix.nim` if so you're refering to the module when you do `Matrix` so either rename the file to `matricies` or do `Matrix.Matrix` to access the type, the former is more idiomatic.

Can't create sequence with newSeq

2021-07-11 Thread Gadersd
I have a Matrix object defined as follows: type Matrix* = object numRows* : int numCol* : int data : seq[float] Run When I call `newSeq[Matrix](3)` I get the error "Error: expression 'Matrix' has no type (or is ambiguous)." What is