質問


たとえば、私は以下のパニック文で長い文字列を分割したいです (panic "Truth-assignment length is longer than the number of propositions!")

私は
を試してみました (panic "Truth-assignment length is longer than the number \
of propositions!")

そして、
(panic "Truth-assignment length is longer than the number
of propositions!")

そして彼らの両方が動作しません。グーグルは、どちらかのものが提供されていません。

役に立ちましたか?

解決

使用あなたのIDEの内蔵の書式設定で文字列追加します:

(panic (string-append "Truth-assignment length is longer " 
                      "than the number of propositions!"))

他のヒント

すべてのSchemeの仕様は、長い文字列を破る方法を定義していません。あなたの質問への答えは、あなたが使用しているスキームに依存します。私はR6RSはあなたがしようとした最初のもののような方法が含まれると考えています。その他には、あなたの文字列の長さを短く非常に長い行を持っている、または使用の小さい文字列と文字列追加するか、あなたを強制的に、そのようなオプションを提供していないかもしれません。

これらのリンクを見てください: http://www.mail-archive.com/ r6rs-discuss@lists.r6rs.org/msg01810.htmlする http://practical-scheme.net/gauche/する(2008年2月13日の検索)

ライセンス: CC-BY-SA帰属
所属していません StackOverflow
scroll top