Why does the x := 'Transcript show: 'abc'.'. yield x := 'Transcript show: 'abc Nothing more expected ->'.'. ?
I think you are using the period as a join operator. The join operator is a comma.
On Dec 28, 2016, at 4:26 PM, obrienj [via Smalltalk] ml-node+s1294792n4928334h3@n4.nabble.com wrote:
Why does the x := 'Transcript show: 'abc'.'. yield x := 'Transcript show: 'abc Nothing more expected ->'.'. ?
Beginners mailing list [hidden email] http://lists.squeakfoundation.org/mailman/listinfo/beginners
If you reply to this email, your message will be added to the discussion below: http://forum.world.st/String-question-tp4928334.html To start a new topic under Squeak - Beginners, email ml-node+s1294792n107673h12@n4.nabble.com To unsubscribe from Squeak - Beginners, click here. NAML
-- View this message in context: http://forum.world.st/String-question-tp4928334p4928337.html Sent from the Squeak - Beginners mailing list archive at Nabble.com.
I'm not trying to join anything. I want to put Transcript show: 'abc'. (including the period) into string x.
A simpler example: x := 'abc.'. puts abc. into x, so why doesn't x := ''abc'.' put 'abc.' into x (the single quotes are part of the string)?
-------- Original Message --------
-------- Original Message -------- Subject: Re: [Newbies] String question Local Time: December 28, 2016 3:49 PM UTC Time: December 28, 2016 11:49 PM From: joseph.alotta@gmail.com To: beginners@lists.squeakfoundation.org
I think you are using the period as a join operator. The join operator is a comma.
On Dec 28, 2016, at 4:26 PM, obrienj [via Smalltalk] <[[hidden email]](/user/SendEmail.jtp?type=node&node=4928337&i=0)> wrote:
Why does the x := 'Transcript show: 'abc'.'. yield x := 'Transcript show: 'abc Nothing more expected ->'.'. ?
Beginners mailing list [hidden email] http://lists.squeakfoundation.org/mailman/listinfo/beginners
If you reply to this email, your message will be added to the discussion below: http://forum.world.st/String-question-tp4928334.html To start a new topic under Squeak - Beginners, email [[hidden email]](/user/SendEmail.jtp?type=node&node=4928337&i=1) To unsubscribe from Squeak - Beginners, click here. NAML
------ View this message in context:[Re: String question](http://forum.world.st/String-question-tp4928334p4928337.html) Sent from the [Squeak - Beginners mailing list archive](http://forum.world.st/Squeak-Beginners-f107673.html) at Nabble.com.
I see.
You are looking to find the escape sequence.
I tried x := ‘Transcript show: \’abc\’.’.
But that doesn’t work.
I’m only a beginner myself. I wonder where the others are in this group?
Sincerely,
Joseph.
On Dec 28, 2016, at 10:42 PM, obrienj [via Smalltalk] ml-node+s1294792n4928343h82@n4.nabble.com wrote:
I'm not trying to join anything. I want to put Transcript show: 'abc'. (including the period) into string x.
A simpler example: x := 'abc.'. puts abc. into x, so why doesn't x := ''abc'.' put 'abc.' into x (the single quotes are part of the string)?
-------- Original Message --------
-------- Original Message -------- Subject: Re: [Newbies] String question Local Time: December 28, 2016 3:49 PM UTC Time: December 28, 2016 11:49 PM From: [hidden email] To: [hidden email]
I think you are using the period as a join operator. The join operator is a comma.
On Dec 28, 2016, at 4:26 PM, obrienj [via Smalltalk] <[hidden email]> wrote:
Why does the x := 'Transcript show: 'abc'.'. yield x := 'Transcript show: 'abc Nothing more expected ->'.'. ?
Beginners mailing list [hidden email] http://lists.squeakfoundation.org/mailman/listinfo/beginners
If you reply to this email, your message will be added to the discussion below: http://forum.world.st/String-question-tp4928334.html To start a new topic under Squeak - Beginners, email [hidden email] To unsubscribe from Squeak - Beginners, click here. NAML
View this message in context:Re: String question Sent from the Squeak - Beginners mailing list archive at Nabble.com.
Beginners mailing list [hidden email] http://lists.squeakfoundation.org/mailman/listinfo/beginners
If you reply to this email, your message will be added to the discussion below: http://forum.world.st/String-question-tp4928334p4928343.html To start a new topic under Squeak - Beginners, email ml-node+s1294792n107673h12@n4.nabble.com To unsubscribe from Squeak - Beginners, click here. NAML
-- View this message in context: http://forum.world.st/String-question-tp4928334p4928344.html Sent from the Squeak - Beginners mailing list archive at Nabble.com.
On 29.12.2016, at 06:39, Joseph Alotta joseph.alotta@gmail.com wrote:
I see.
You are looking to find the escape sequence.
I tried x := ‘Transcript show: \’abc\’.’.
you have to double the quotes:
x := 'Transcript show: ''abc''.'
Best regards -Tobias
But that doesn’t work.
I’m only a beginner myself. I wonder where the others are in this group?
Sincerely,
Joseph.
On Dec 28, 2016, at 10:42 PM, obrienj [via Smalltalk] <[hidden email]> wrote:
I'm not trying to join anything. I want to put Transcript show: 'abc'. (including the period) into string x.
A simpler example: x := 'abc.'. puts abc. into x, so why doesn't x := ''abc'.' put 'abc.' into x (the single quotes are part of the string)?
-------- Original Message --------
-------- Original Message -------- Subject: Re: [Newbies] String question Local Time: December 28, 2016 3:49 PM UTC Time: December 28, 2016 11:49 PM From: [hidden email] To: [hidden email]
I think you are using the period as a join operator. The join operator is a comma.
On Dec 28, 2016, at 4:26 PM, obrienj [via Smalltalk] <[hidden email]> wrote:
Why does the x := 'Transcript show: 'abc'.'. yield x := 'Transcript show: 'abc Nothing more expected ->'.'. ?
Beginners mailing list [hidden email] http://lists.squeakfoundation.org/mailman/listinfo/beginners
If you reply to this email, your message will be added to the discussion below: http://forum.world.st/String-question-tp4928334.html To start a new topic under Squeak - Beginners, email [hidden email] To unsubscribe from Squeak - Beginners, click here. NAML
View this message in context:Re: String question Sent from the Squeak - Beginners mailing list archive at Nabble.com.
Beginners mailing list [hidden email] http://lists.squeakfoundation.org/mailman/listinfo/beginners
If you reply to this email, your message will be added to the discussion below: http://forum.world.st/String-question-tp4928334p4928343.html To start a new topic under Squeak - Beginners, email [hidden email] To unsubscribe from Squeak - Beginners, click here. NAML
View this message in context: Re: String question Sent from the Squeak - Beginners mailing list archive at Nabble.com. _______________________________________________ Beginners mailing list Beginners@lists.squeakfoundation.org http://lists.squeakfoundation.org/mailman/listinfo/beginners
beginners@lists.squeakfoundation.org