vmFullPath answer (was: [Pharo-project] About Cocoa VMs)

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

vmFullPath answer (was: [Pharo-project] About Cocoa VMs)

EstebanLM
 
can we reach an agreement on this?

Inicio del mensaje reenviado:

De: Damien Pollet <[hidden email]>
Fecha: 13 de julio de 2011 11:14:23 GMT-03:00
Asunto: Re: [Pharo-project] About Cocoa VMs
Responder a: [hidden email]

On 13 July 2011 15:56, Esteban Lorenzano <[hidden email]> wrote:
what should answer?

Whatever, but the same on all VMs

which version is broken? cocoa or regular?

Both, since they don't answer the same :)
Regular replies a path to the binary so it looks better, but a path to
the .app also makes sense on Mac.

is there a cog ticket?

I don't know.

no, there is no way to difference between carbon/cocoa/unix versions... and I don't think it should be (right solution is to make #vmFullPath return right answer, he). In fact, it should be only one version of vm "blessed", with time, we will reach that point :)

But #vmFullPath is not clear as a message name, and both different
behaviours are useful in different use-cases.

I much prefer:
- vmBinary (which we can use to invoke to run the VM from a shell)
- vmDirectory (which is what the cocoa VM currently returns for
vmFullPath, and should be == to vmFile parent)
- vmFile (because we can't assume the name of the .app)

etc etc

--
Damien Pollet
type less, do more [ | ] http://people.untyped.org/damien.pollet