| Harzilein | Ani-_: windows dlls linked the right way might abstract things away |
| warpzero | how do i access a superclass' variable |
| Harzilein | Ani-_: but of course i assume one has to know what one does |
| jagerman | warpzero: You shouldn't. |
| Harzilein | Ani-_: which i don't, but am willing to learn ;) |
| Caelum | Ani-_: well, AS is built with MSVC, and the free compiler is a version of MSVC, so it should theoretically work. |
| warpzero | jagerman, i know deep down that you're right but i still want to |
| Caelum | Ani-_: and activestate says something about "mingw special" but I never got that to work |
| Ani-_ | Caelum: I see. |
| jagerman | warpzero: How about: if you need to do that, your class is broken. :) |
| action | CPAN upload: Params-CallbackRequest-1.17 by DWHEELER |
| CPAN | upload: Params-CallbackRequest-1.17 by DWHEELER |
| warpzero | jagerman, well really i just want procedural code but i want inheritance |
| Ani-_ | Perhaps you should learn either one of them properly. Before trying to mix them in a not so very smart way. |
| jagerman | warpzero: You can get your superclass name, then (outside of strict refs) try to access things. It's a bad idea, though, easy to break, messy to maintain, and generally a very bad idea. That assumes, of course, that you only have one superclass and no supersuperclasses. |
| warpzero | no strict 'refs' is the sign of the devil |
| Harzilein | hmm, maybe getting vanilla perl with win32 isn't such a bad idea, as i can stage stuff at home then s/win32/mingw32/ |
| Ani-_ | warpzero: do it properly or don't do it. |
| warpzero | jagerman, so the correct way to do this to make accessors and inherit them right |
| Harzilein | but then i'd have to do the installer stuff myself... but oh well, it can't be that bad |
| jagerman | warpzero: Yes warpzero: And, if you want an even better approach, don't use global variables at all. |
| warpzero | the problem i have with that is there's no way to use strict hash keys |
| jagerman | strict hash keys? |
| warpzero | yeah i man i mean if you do the whole blessed hash ref thing its like turning strict off in a way |
| Ani-_ | warpzero: sure there is. Tie::StrictHash. But not sure if that makes sense to use. |
| jagerman | warpzero: How so? |
| warpzero | jagerman, because if i misspell a hash key it doesn't catch it |
| Ani-_ | Because you can use $some_object->{some_key} . But maybe that is why you should create accessors? So you don't have to use $some_object->{some_key} but $some_object->get_some_key(); then you can only mis-spell it in one place. |