I am trying to keep a single package for both. Is there a good clean way to test whether I am in squeak or Pharo?
This should work:
isSqueak ^ SystemVersion current version beginsWith: 'Squeak'
Best, Fabio
On Tue, Oct 17, 2017 at 4:15 PM Alan Pinch alan.c.pinch@gmail.com wrote:
I am trying to keep a single package for both. Is there a good clean way to test whether I am in squeak or Pharo?
-- Thank you for your consideration, Alan
Correct.
But depending on what you do, using Grease or Metacello might be better.
Best regards -Tobias
On 17.10.2017, at 17:31, Fabio Niephaus lists@fniephaus.com wrote:
This should work:
isSqueak ^ SystemVersion current version beginsWith: 'Squeak'
Best, Fabio
On Tue, Oct 17, 2017 at 4:15 PM Alan Pinch alan.c.pinch@gmail.com wrote: I am trying to keep a single package for both. Is there a good clean way to test whether I am in squeak or Pharo?
-- Thank you for your consideration, Alan
What's Grease? I have not heard of it before. Is this something that might work between squeak and pharo? ANd cuis?
Alan
On 10/17/2017 11:38 AM, Tobias Pape wrote:
Correct.
But depending on what you do, using Grease or Metacello might be better.
Best regards -Tobias
On 17.10.2017, at 17:31, Fabio Niephaus lists@fniephaus.com wrote:
This should work:
isSqueak ^ SystemVersion current version beginsWith: 'Squeak'
Best, Fabio
On Tue, Oct 17, 2017 at 4:15 PM Alan Pinch alan.c.pinch@gmail.com wrote: I am trying to keep a single package for both. Is there a good clean way to test whether I am in squeak or Pharo?
-- Thank you for your consideration, Alan
Grease is a dialect-specific layer that enables Seaside to be ported on different Smalltalks.
2017-10-17 17:52 GMT+02:00 Alan Pinch alan.c.pinch@gmail.com:
What's Grease? I have not heard of it before. Is this something that might work between squeak and pharo? ANd cuis?
Alan
On 10/17/2017 11:38 AM, Tobias Pape wrote:
Correct.
But depending on what you do, using Grease or Metacello might be better.
Best regards -Tobias
On 17.10.2017, at 17:31, Fabio Niephaus lists@fniephaus.com wrote:
This should work:
isSqueak ^ SystemVersion current version beginsWith: 'Squeak'
Best, Fabio
On Tue, Oct 17, 2017 at 4:15 PM Alan Pinch alan.c.pinch@gmail.com wrote: I am trying to keep a single package for both. Is there a good clean way to test whether I am in squeak or Pharo?
-- Thank you for your consideration, Alan
-- Thank you for your consideration, Alan
Grease http://wiki.squeak.org/squeak/3750
On 10/17/17, Nicolas Cellier nicolas.cellier.aka.nice@gmail.com wrote:
Grease is a dialect-specific layer that enables Seaside to be ported on different Smalltalks.
2017-10-17 17:52 GMT+02:00 Alan Pinch alan.c.pinch@gmail.com:
What's Grease? I have not heard of it before. Is this something that might work between squeak and pharo? ANd cuis?
Alan
On 10/17/2017 11:38 AM, Tobias Pape wrote:
Correct.
But depending on what you do, using Grease or Metacello might be better.
Best regards -Tobias
On 17.10.2017, at 17:31, Fabio Niephaus lists@fniephaus.com wrote:
This should work:
isSqueak ^ SystemVersion current version beginsWith: 'Squeak'
Best, Fabio
On Tue, Oct 17, 2017 at 4:15 PM Alan Pinch alan.c.pinch@gmail.com wrote: I am trying to keep a single package for both. Is there a good clean way to test whether I am in squeak or Pharo?
-- Thank you for your consideration, Alan
-- Thank you for your consideration, Alan
squeak-dev@lists.squeakfoundation.org