objectName= >>-objectName=(newname)---------------------------------------->< Sets the receiver object's name to the string [newname] . Object class - objectName= method points=.array~of("N","S","E","W") say points~objectName /* (no change yet) Says: "an Array" */ points~objectName=("compass") /* Changes obj name POINTS to "compass"*/ say points~objectName /* Shows new obj name. Says: "compass" */ say points~defaultName /* Default is still available. */ /* Says "an Array" */ say points /* Says string representation of */ /* points "compass" */ say points[3] /* Says: "E"Points is still an array */ /* of 4 items */ |