At Thu, 8 Aug 2002 05:27:27 +0900,
Daniel Berger wrote:

> test.rb:3:in `require': identifier Proto::ProtoStruct needs to be constant (NameError) from 
> test.rb:3

> void Init_proto()
> {
>    VALUE np_mNet;
>    np_mNet = rb_define_module("Net");
>    cNetProto = rb_define_class_under(np_mNet,"Proto",rb_cObject);
> 
>    sProto = rb_struct_define("Proto::ProtoStruct","name","aliases","number",0);
>   rb_global_variable(&sProto);

try replacing the last two lines by

  sProto = rb_struct_define("ProtoStruct","name","aliases","number",0);
  rb_define_const(cNetProto, "ProtoStruct", sProto);


-- Gotoken