I didn’t realize this forum existed, I kept going to the Google group!
Anyhow my question is whether the << method for arrays needs to be overloaded to accomodate arrays of user-defined structs.
For example in the code:
def tokenize tokens =  of Token until @code.empty? tokens << next_token # a method which returns instance of Token.new(kind, value) @code = @code.strip end tokens end
tokens << next_token
gives an error, saying that it could not find any overloads for Array of type Token.
So if I understand, I would need to overload << to tell it what to do when asked to append a new item of type Token?