ClojureCLR

(System.Environment.SpecialFolder/Personal) ;Return: CompilerException System.InvalidOperationException: Unable to find static field: Personal

Details

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

Hide
David Miller added a comment -

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.

Show
David Miller added a comment - 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.

People

Vote (0)
Watch (0)

Dates

  • Created:
    Updated:
    Resolved: