[#1026] Is this a bug? — Dave Thomas <Dave@...>

18 messages 2000/01/03

[#1084] Infinite loop — Dave Thomas <Dave@...>

17 messages 2000/01/11

[#1104] The value of while... — Dave Thomas <Dave@...>

24 messages 2000/01/11

[ruby-talk:01147] struct / freeze

From: ts <decoux@...>
Date: 2000-01-16 09:35:54 UTC
List: ruby-talk #1147
 I can't freeze a struct, it's normal ?

pigeon% cat b.rb
#!/usr/bin/ruby
St = Struct.new("St", :first, :second);
St.new(3, 4).freeze
pigeon% b.rb
./b.rb:3: undefined method `freeze' for #<Struct::St first=3, second=4> (NameError)
pigeon% 


Guy Decoux

In This Thread

Prev Next