Implemented assignment for pointer types