Hi I was wondering if anyone knows if there are any circumstances where the "create" methods that all Windows have are useful? They end up producing quite a lot of C++ code so I might try undeffing them if they''re useless. Alex
I just checked all of my wxRuby programs and I don''t do any two-step construction of objects. Even when I used plain wxWidgets C++ I don''t recall using Create(). I have no objection to removing those methods, if anyone hollers we can then go back and add them back in. Sean On 10/18/07, Alex Fenton <alex at pressure.to> wrote:> Hi > > I was wondering if anyone knows if there are any circumstances where the > "create" methods that all Windows have are useful? > > They end up producing quite a lot of C++ code so I might try undeffing > them if they''re useless. > > Alex > _______________________________________________ > wxruby-development mailing list > wxruby-development at rubyforge.org > http://rubyforge.org/mailman/listinfo/wxruby-development >
Hey Alex, Personally, I can''t say this for anyone else, but myself, I never use the create() method on any of the Windows. I typically just do the new method. If someone wants a create() function, they can proabbly write it in Ruby Code, a lot easier, then in C++. So my suggestion would be to drop it. If it cuts down on the bloat, and improves the speed, that''s a double plus. L8ers, Mario Steele Alex Fenton wrote:> Hi > > I was wondering if anyone knows if there are any circumstances where the > "create" methods that all Windows have are useful? > > They end up producing quite a lot of C++ code so I might try undeffing > them if they''re useless. > > Alex > _______________________________________________ > wxruby-development mailing list > wxruby-development at rubyforge.org > http://rubyforge.org/mailman/listinfo/wxruby-development > >
http://wiki.wxpython.org/TwoStageCreation On 10/19/07, Alex Fenton <alex at pressure.to> wrote:> Hi > > I was wondering if anyone knows if there are any circumstances where the > "create" methods that all Windows have are useful? > > They end up producing quite a lot of C++ code so I might try undeffing > them if they''re useless. > > Alex > _______________________________________________ > wxruby-development mailing list > wxruby-development at rubyforge.org > http://rubyforge.org/mailman/listinfo/wxruby-development >
Sean Long wrote:> I just checked all of my wxRuby programs and I don''t do any two-step > construction of objects. Even when I used plain wxWidgets C++ I don''t > recall using Create(). > > I have no objection to removing those methods, if anyone hollers we > can then go back and add them back in. >Thanks all for comments. I''ll try disabling those and some (maybe) redundant directors in lots of Window classes to see if it''ll slim down the library. I think this sort of change is probably better at the start of the next release cycle. alex