【入門】CommonLispその2【質問よろず】
■ このスレッドは過去ログ倉庫に格納されています
0133デフォルトの名無しさん
2006/07/30(日) 03:20:54まともな処理系でcommon-lispパッケージで定義されてるものを再定義しようとすると
警告なりなんなりが出るとおもう。参考までにACLでやるとこんな感じ↓
Error: Attempt to make a function definition for the name +.
This name is in the common-lisp package and redefining it is a violation for portable programs.
Replacing the current definition of #<Function +> may be dangerous.
The package common-lisp has package-definition-lock set, which causes the system to signal this violation.
[condition type: package-locked-error]
関係ないけどファンクションのオーバーロードなんてできないよね?再定義だよね?
ジェネリックファンクションじゃないんだから。131の意見をもっと詳しく聞きたい。
■ このスレッドは過去ログ倉庫に格納されています