<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://trans.onionmixer.net/wiki/index.php?action=history&amp;feed=atom&amp;title=ComputerProgrammingwithGNUSmalltalk%3A3.4</id>
	<title>ComputerProgrammingwithGNUSmalltalk:3.4 - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://trans.onionmixer.net/wiki/index.php?action=history&amp;feed=atom&amp;title=ComputerProgrammingwithGNUSmalltalk%3A3.4"/>
	<link rel="alternate" type="text/html" href="https://trans.onionmixer.net/wiki/index.php?title=ComputerProgrammingwithGNUSmalltalk:3.4&amp;action=history"/>
	<updated>2026-05-01T18:35:23Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.43.3</generator>
	<entry>
		<id>https://trans.onionmixer.net/wiki/index.php?title=ComputerProgrammingwithGNUSmalltalk:3.4&amp;diff=2480&amp;oldid=prev</id>
		<title>Onionmixer: CPGS 메시지캐스캐이딩 페이지 추가</title>
		<link rel="alternate" type="text/html" href="https://trans.onionmixer.net/wiki/index.php?title=ComputerProgrammingwithGNUSmalltalk:3.4&amp;diff=2480&amp;oldid=prev"/>
		<updated>2012-09-21T09:07:03Z</updated>

		<summary type="html">&lt;p&gt;CPGS 메시지캐스캐이딩 페이지 추가&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;==메시지 캐스캐이딩==&lt;br /&gt;
&lt;br /&gt;
GNU 스몰토크는 객체의 이름을 매번 쓰지 않고도 여러 메시지를 전달할 수 있도록 허용하고 있습니다. 이것을 {{HighlightSubscript|메시지 캐스캐이딩|message cascading}}이라고 합니다. 메시지 캐스캐이딩에 대한 문법은 다음과 같습니다.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;smalltalk&amp;quot;&amp;gt;&lt;br /&gt;
objectName message1; message2; message3; ... ; messageN&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
우리가 보내고자 하는 메시지 사이에 세미콜론을 넣기만 하면 됩니다. 세미콜론이 없는 메시지 연쇄와는 다릅니다. 메시지 연쇄의 경우 모든 메시지는 이전 메시지의 결과 객체로 보내집니다.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
여기 메시지 캐스캐이딩의 예제가 있습니다.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;smalltalk&amp;quot;&amp;gt;&lt;br /&gt;
Transcript show: &amp;#039;Canol&amp;#039;; cr&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
cr은 carriage return이라고 불리는 메시지로 Transcript 객체가 개행을 입력하도록 하는 메시지입니다. 따라서 Transcript 객체에 첫 번째 메시지 show: ‘Canol’ 을 보내고, 다음에 cr을 보냅니다.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
메시지 캐스캐이딩을 사용할 때에는 주의해야 합니다. 왜냐하면 가끔 우선순위 규칙에 따라 여러분이 예상치 못한 결과가 나올 수 있습니다.&lt;br /&gt;
&lt;br /&gt;
[[Category:ComputerProgrammingwithGNUSmalltalk]]&lt;/div&gt;</summary>
		<author><name>Onionmixer</name></author>
	</entry>
</feed>