精華區beta Programming 關於我們 聯絡資訊
※ 引述《brianhsu (墳墓)》之銘言: > > 2. call_other operator 是否還存在於 Pike 中? > > 譬如寫 x->foo(a, b, c); 可以呼叫物件 x 中的 foo() 函式, > > 若 foo() 有三個參數 a、b、c,我寫 x->foo(a, b);, > > 是不是 c 可以自動被視為 undefined value? > 剛剛試了一下,好像不行,會出現 too few argument. 不過可以用 int foo ( int a , int b , int|void c ) 這種方式,call foo(a,b) 時,c 就是 undefined. -- ~ 白馬帶著她一步步地回到中原。白馬已經老了,只能慢慢地走, 'v' Brian Hsu 但終是能回到中原的。江南有楊柳、桃花,有燕子、金魚…… // \\ ( 墳 墓 ) /( )\ 但這個美麗的姑娘就像古高昌國人那樣固執。 【白馬嘯西風】 ^`~'^ http://bone.twbbs.org 『那都是很好很好的,可我偏不喜歡。』 -- ※ Origin: SayYA 資訊站 <bbs.sayya.org> ◆ From: 219-68-170-224.adsl.dynamic.giga.net.tw