0
compile_file()はいくつかの出力ファイルを作成します。これらのどれも、load()またはloadfile()またはbatch()で使用することはできません。また、シェルのコマンドラインから行うこともできます。そして、それらをどのように使用できるかの例はありません。compile_fileの結果をどのように実行できますか?
compile_file()はいくつかの出力ファイルを作成します。これらのどれも、load()またはloadfile()またはbatch()で使用することはできません。また、シェルのコマンドラインから行うこともできます。そして、それらをどのように使用できるかの例はありません。compile_fileの結果をどのように実行できますか?
はここan example from the test suite.
(kill (all),
lisp_name : ssubst ("_", " ", build_info()@lisp_name),
maxima_filename : sconcat (maxima_tempdir, "/tmp-rtest_translator-compile_file-", lisp_name, ".mac"),
fasl_filename : sconcat (maxima_tempdir, "/tmp-rtest_translator-compile_file-", lisp_name, ".fasl"),
lisp_filename : sconcat (maxima_tempdir, "/tmp-rtest_translator-compile_file-", lisp_name, ".LISP"),
maxima_output : openw (maxima_filename),
maxima_content :
"foo (x) := my_foo * x;
Foo (x) := my_Foo * x;
FOO (x) := my_FOO * x;
[my_foo, my_Foo, my_FOO] : [123, 456, 789];
results : [foo (2), Foo (3), FOO (4)];
my_test() := is (results = [2*123, 3*456, 4*789]);",
printf (maxima_output, maxima_content),
close (maxima_output),
compile_file (maxima_filename, fasl_filename, lisp_filename),
kill (allbut (lisp_filename)),
load (lisp_filename),
my_test());
'compile_file'はあなたがロードできるのLispファイルを生成することになっています。そうでなければ、それはバグです。実行しているエラーを説明できますか?また 'build_info();'の出力は何ですか? –