Zulip Chat Archive
Stream: std4
Topic: compileTimeSearchPath%
Scott Morrison (Aug 18 2023 at 07:55):
Can we put
/--
Term elaborator that retrieves the current `SearchPath`.
This can only be used in files that are compiled locally.
(That is, if used in an imported file it will embed the search path from whichever machine
compiled the `.olean`.)
-/
elab "compileTimeSearchPath%" : term =>
return toExpr (← searchPathRef.get)
in Std? I want it in multiple locations (and it was being duplicated in Mathlib), so upstreaming seems natural.
Mario Carneiro (Aug 18 2023 at 19:27):
it should be snake cased
Scott Morrison (Aug 20 2023 at 06:57):
Okay, this is in std4#222, but that is stacked on top of std4#221.
Last updated: Dec 20 2023 at 11:08 UTC