On Wed, 1 Aug 2001, Laurent Julliard wrote:

> myvar = @"A sample string"

It's not clean, but you could define a method in Object, like:

  class Object
    def ex str
      str * 3
    end
  end

then you can do:

  myvar = ex "A sample string"

anywhere in your code. You can define this within a class or module if
you want to limit the behaviour to a section of code.

> PS: For those of you who know Objective C and the GNUstep environment
> you probably see what I want to achieve.

There will always be some things that are shorter in another language.

-- 
  spwhite / chariot.net.au