On Mon, Jan 02, 2012 at 01:04:58PM -0300, Esteban Lorenzano wrote:
> Hi, 
> 
> I was trying to fix this, but seems to be a problem (besides the 
> "'-psn_0_528513'", which is an error). 
> According SmalltalkImage>>#getSystemAttribute: comment, getSystemAttribute: 0 
> shouldn't answer the executable name, but the VM path: 
> 
>       0               the full path name for currently executing VM
>                        (or, on some platforms, just the path name of the VM's 
> directory)
> 
> ...so... getSystemAttribute: 0 is answering fine... and -1 should answer nil 
> (or the vm parameters, if present), not the executable name. Real problem 
> then is:
> 
> we don't have a way  to get the executable name
> 
> or
> 
> getSystemAttribute: comment is wrong :)
> 

On a unix VM, it answers the full path to the executable, which is
in agreement with the comment. For example:

  Smalltalk getSystemAttribute: 0 ==> 
'/usr/local/lib/squeak/4.7.18-2505/squeakvm'

Maybe is is more complicated for Mac, but wasn't there some discussion
about it on vm-dev a while back?

Dave


> what's the audience opinion? 
> 
> cheers,
> Esteban
> 
> 
> El 31/12/2011, a las 9:11p.m., Sean P. DeNigris escribi?:
> 
> > The latest blessed cocoa build from Jenkins (12/11/11 #10) + 1.3-rc returns:
> > 
> > SmalltalkImage current getSystemAttribute: -1."'-psn_0_528513'"
> > SmalltalkImage current getSystemAttribute: 0 "'/Applications'" 
> > 
> > There does not seem to be a way to get the vm executable name.
> > 
> > Sean
> > 
> > --
> > View this message in context: 
> > http://forum.world.st/VM-Smalltalk-getSystemAttribute-tp4122708p4249718.html
> > Sent from the Pharo Smalltalk mailing list archive at Nabble.com.
> > 
> 

Reply via email to