On Sunday, November 23, 2014 3:11:29 PM UTC+10, Rob J Goedman wrote:
>
> Hi, 
>
> In Stan.jl and Jags.jl I look for environment variables. 
>
> On unix 
>
> ``` 
> ccall( (:getenv, "libc"), Ptr{Uint8}, (Ptr{Uint8},), bytestring(var)) 
> ``` 
> works fine. 
>
> But not on Windows. I've seen 
>
> ENV("STAN_HOME") 
>

http://docs.julialang.org/en/latest/stdlib/base/?highlight=env#Base.ENV
 

>
> mentioned (on http://rosettacode.org/wiki/Environment_variables#Julia , 
> can't try that myself). Is that indeed how to get hold of environment 
> variables? 
>
> Thanks, 
> Rob J. Goedman 
> goe...@mac.com <javascript:> 
>
>
>
>
>
>

Reply via email to