« Character variable | Main | Counter of character variable »

December 14, 2005

Substitution using parentheses

Substitution for character variable can be executed with parentheses

[my friend=Reiko|Yosie]
[my friend=(Reiko|Yosie)]

each case has different effect of substitution.

sample28.7th

title having_a_tea
[my friend=Reiko|Yosie]
I and [my friend], enter the tea room near the University after entrance ceremony.
end

---------------------- 7threader English Version -----------------------

I and Reiko, enter the tea room near the University after entrance ceremony.

-------- 7threader English Version Copy Right Yuki Nanotabi 2004/2/28 Ver 1.00 ---------

In this case parentheses are processed when substitution is executed.

But another case of following

sample29.7th
title having_a_tea
[my friend=(Reiko|Yosie)]
We enter the tea room near the University after entrance ceremony.
[my friend] said "To day is very hot" and put off her jacket.
I wanted to have vanilla shake but [my friend] ordered coffee saying "You would like to have coffee, don't you?".
[my friend] said "I wonder when lecture begin" putting sugar to her coffee.
end

---------------------- 7threader English Version -----------------------

We enter the tea room near the University after entrance ceremony.
Yosie said "To day is very hot" and put off her jacket.
I wanted to have vanilla shake but Reiko ordered coffee saying "You would like to have coffee, don't you?".
Yosie said "I wonder when lecture begin" putting sugar to her coffee.

-------- 7threader English Version Copy Right Yuki Nanotabi 2004/2/28 Ver 1.00 ---------

In this case parentheses are processed when character variable "my friend" is displayed its value.

So It may have different value each time when it displayed.

|

« Character variable | Main | Counter of character variable »