[ruby-talk:00341] Struct.new

From: "Michael Neumann" <neumann@...>
Date: 1999-05-25 10:53:54 UTC
List: ruby-talk #341
Hi...

Following code is incompatible between 1.25 and 1.3x

#version 1.25:
St =3D Struct.new("St", :first, :second)
s =3D St.new

#version 1.3x:
St =3D Struct.new("St", :first, :second)
s =3D St.new    # error: `initialize': struct size differs =
(ArgumentError)
a =3D St.new(3,4) #works


Perhaps this could be changed?

Michael

In This Thread

Prev Next