イフコンピュータ > MINERVA > マニュアル > レファレンス > 指令 > double_quotes

double_quotes

MINERVA
ifcomputer logo
f
Expert Services on the Web

コンパイラ指令':- set_prolog_flag(double_quotes,Value)'は コンパイル時に、" (二重引用符)をコンパイラが 扱う方法を指定します。

'current_prolog_flag(?Flag,-Value)'の述語は、実行時に フラグの値を尋ねるのに使われます。

Flag = double_quotes について

     Value = chars      "hello" -> [h,e,l,l,o]
     Value = codes      "hello" -> [104,101,108,108,111]
     Value = atom       "hello" -> hello
MINERVAはデフォルトでは、二重引用符で囲まれた文字列を 文字のリストとして読み取ります。

必要な場合のみ、ソースファイルの最初に次の1行を付け加えることを お勧めします。

:- set_prolog_flag(double_quotes, codes).

document: http://www.ifcomputer.co.jp/MINERVA/Manual/Reference/Directives/double_quotes/print_jp.html
published 2008/10/6 update 2002/3/20 (c) 1996-2006 IF Computer Japan
IF Computer 〒113-0022 Tel 03-5814-3352 start (AT) ifcomputer.com
Customer Support 東京都文京区千駄木5-28-2   http://www.ifcomputer.co.jp
戻る> managed with ubiCMS