[#964] Bastion or SecurityManager for Ruby? — Clemens Hintze <clemens.hintze@...>

Hi,

15 messages 1999/12/10

[#989] a question about to_i — Friedrich Dominicus <Friedrich.Dominicus@...>

Sorry, I'm quite new to ruby. But I encounterd the following problem. If

17 messages 1999/12/19

[ruby-talk:01001] Re: object-creation

From: matz@... (Yukihiro Matsumoto)
Date: 1999-12-20 01:02:27 UTC
List: ruby-talk #1001
Hi,

In message "[ruby-talk:01000] object-creation"
    on 99/12/20, "Michael Neumann" <neumann@s-direktnet.de> writes:

|Is it possible to create a Point-object without calling "new" that
|automatically calles "initialize"?

Not from Ruby.  Using C extension you can.

|I've tried it this way:
|      def  my_new
|          aPoint = Class.new(Object)
|          aPoint.x = 4        # error
|      end

Class.new creates new unnamed class (not instance).

In This Thread

Prev Next