[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Scheme-reports] Checking implementation features and Scheme name?



On 01/02/2012 01:52 AM, Jeronimo Pellegrini wrote:
> Reading the latest draft I realized that there is no
> standard way to obtain a list of all features (those
> used by cond-expand) declared/supported by an
> implementation. Chibi, Guile and Tinyscheme do keep
> a list in the *features* variable, but it doesn't seem
> to be standard. It would make sense in some situations
> to check/log/report features, maybe not knowing a
> complete list of possible features beforehand.

As long as the feature list is allowed to be a subset
of all features, mainly to be used for logging.

Kawa allows class-exists:ClassName as a feature, which
is true if the class ClassName is available (in the classpath)
at macro-expansion time.  Obviously a complete list of
features of this form would be expensive to compute.
-- 
	--Per Bothner
per@x   http://per.bothner.com/

_______________________________________________
Scheme-reports mailing list
Scheme-reports@x
http://lists.scheme-reports.org/cgi-bin/mailman/listinfo/scheme-reports