Add Element to list not Working

Chris Pons cmpons at gmail.com
Sun Apr 1 22:45:51 PDT 2012


I'm trying to add an element to a list with insert but that 
doesn't seem to do anything at all. If I try using ~= it says 
that "Error: cannot append type Node to type SList!(Node). I'm 
pretty confused about using ~= because it works fine for arrays 
but apperantly not for lists.

How do I add an element to a list?


More information about the Digitalmars-d-learn mailing list