>>>>> "ES" == Emre Sevinc <[EMAIL PROTECTED]> writes:
[...]
ES> Kafam şeye gitti, yani işte CL var CL-USER var, CL-USER
ES> aslında CL'deki sembolleri de alıyor filan. Ama bunun
ES> konumuzla bir ilgisi var mı tam bilmiyorum. LOOP makrosu
ES> içindeki o present-symbols tam olarak hangi kritere göre
ES> getiriyor sembolleri pek anlaşılmıyor HyperSpec'e bakınca
ES> çünkü "the symbols that are present in a package" lafı ile
ES> "the symbols accessible in package" tam olarak
ES> ayrıştıramıyorum. Bir şeyler sezer gibi oluyorum ama kafam
ES> büsbütün karışıyor.
Lisp'e sor:
CL-USER> (set-difference
(let (tmp)
(do-symbols (s *package* tmp)
(when (eq (symbol-package s) *package*) (push s tmp))) tmp)
(loop for sym being the present-symbols of *package* collect sym))
NIL
CL-USER>
Dogru anlamissin bence, ama biraz daha minciklaman lazim sezdiginin
tam oturmesi icin. Mesela yukarki ornek, sane hyperpec glossary'sinde
gorebilecegin birseyi cikartmaya yardimci olmak icin faydali olabilir:
-----------
present n. 1. (of a feature in a Lisp image) a state of being that is in
effect if and only if the symbol naming the feature is an element of the
features list. 2. (of a symbol in a package) being accessible in that package
directly, rather than being inherited from another package.
-----------
BM
_______________________________________________
cs-lisp mailing list
[email protected]
http://church.cs.bilgi.edu.tr/lcg
http://cs.bilgi.edu.tr/mailman/listinfo/cs-lisp