Details
-
Type:
Defect
-
Status:
Resolved
-
Priority:
Major
-
Resolution: Declined
-
Affects Version/s: None
-
Fix Version/s: None
-
Component/s: None
-
Environment:Clojure-clr 1.3 .net 4.0
Description
(import [System.Environment.SpecialFolder]) ;return nil
(SpecialFolder/Personal)
;return CompilerException System.InvalidOperationException: Unable to find static field: Personal in clojure.lang.Compiler.AnalyzeSymbol(Symbol symbol) d:\work\clojure-clr\Clojure\Clojure\Cljcompiler\Compiler.cs: line 1518,compiling: (NO_SOURCE_PATH:15)
Activity
David Miller
made changes -
| Field | Original Value | New Value |
|---|---|---|
| Resolution | Declined [ 2 ] | |
| Status | Open [ 1 ] | Resolved [ 5 ] |
SpecialFolder is a nested class of Environment. The actual name is System.Environment+SpecialFolder:
user=> (import '[System Environment+SpecialFolder])
System.Environment+SpecialFolder
user=>
user=>
user=> Environment+SpecialFolder/Desktop
Desktop
It would be nice to have a way to provide an alias, but that's not in Clojure's namespace semantics at the moment.