You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to BYU CS 142 (Spring 2011) [McCarthy]
What does it mean when the problem states:
the node's value is modified in place.
I'm confused on what this means.
Jay McCarthy
unread,
Jun 14, 2011, 12:35:05 PM6/14/11
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to byu-cs-jm-14...@googlegroups.com, BYU CS 142 (Spring 2011) [McCarthy]
It is mutated
iPhoneから送信
Joe Larson
unread,
Jun 15, 2011, 1:54:57 AM6/15/11
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to BYU CS 142 (Spring 2011) [McCarthy]
How do you go about mutating a string then? I thought we were taught
that you can't mutate Strings.
Joe Larson
unread,
Jun 15, 2011, 2:09:13 AM6/15/11
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to BYU CS 142 (Spring 2011) [McCarthy]
Never-mind, it works. For some reason I thought we were taught in
class that you can't have a string "n" already equal to something and
then reassign it. Something about it being "immutable" or something.
But I guess it can.
Jay McCarthy
unread,
Jun 15, 2011, 7:33:10 AM6/15/11
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to byu-cs-jm-14...@googlegroups.com
We don't mutate the pieces of the string, we mutate the node to have a new string in it.