Local neighbourhoods are not given a type
falkecarlsen opened this issue · 0 comments
falkecarlsen commented
Program builtin-count.cell
;
world {
size = 100 [wrap], 200 [wrap]
tickrate = 1
cellsize = 5
}
neighbourhood pseudomoore {
(-1, 1), (0, 1), (1, 1),
(-1, 0), (1, 0),
(-1, -1), (0, -1), (1, -1)
}
state ident (0, 0, 0) {
// Number of 'ident' neighbours in pseudomoore neighbourhood
let x = count(ident, pseudomoore);
become ident;
}
fails with;
Error at (15:12): Actual argument "pseudomoore", of type null, was not equal to formal argument "neighbourhoodParameter", of type neighbourhood
since local neighbourhoods' types are never set.