Difference between "Transcript show" and printNl

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

Difference between "Transcript show" and printNl

dukester
Hi ..

'hello' printLn.

==> 'hello'

Transcript show: 'hello'; cr.

==> hello   (without the single quotes)

Why is that?  TIA ...


Duke

_______________________________________________
help-smalltalk mailing list
[hidden email]
https://lists.gnu.org/mailman/listinfo/help-smalltalk
Reply | Threaded
Open this post in threaded view
|

Re: Difference between "Transcript show" and printNl

Ludovic-2
Le 14/03/2014 14:26, Duke Normandin a écrit :
> Hi ..

Hi Duke

> 'hello' printLn.
>
> ==> 'hello'
>
> Transcript show: 'hello'; cr.
>
> ==> hello   (without the single quotes)
>
> Why is that?  TIA ...


See this book "Computer Programming using GNU Smalltalk" from Canol
Gökel, available as free PDF e-book (see ZIP file):
http://www.canol.info/books/computer_programming_using_gnu_smalltalk/

on page 23, in section "Another Way to Display Output on Terminal"

Ludo



_______________________________________________
help-smalltalk mailing list
[hidden email]
https://lists.gnu.org/mailman/listinfo/help-smalltalk