in reply to Re^3: How to allocate a struct?
in thread How to allocate a struct?
I meanwhile read a lot of perldoc pages and in the perlmonks site. If it were not for the hassle to have to set up a .pm module for each different struct I'd like to use, I'd use the way described in perltoot. But what I want is just basic structs like in old C, without additional OOP features and the like I don't need for my project.
I feel the lack of structs is really a problem, as there are countless implementations of struct simulations. Mouse, Moose, and all their forks. I really do not understand why the Perl gods don't add structs to Perl itself to make things easier and cleaner.
So I finally decided to go the way Athanasius suggested in his update. This example of MooX really looks natural and straightforward, compared to the awkwardiness of the examples shown in the docs of the other packages like Moose and so on. But I ran to another problem, on which I probably better post a new question.
Thanks again to all of you!
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^5: How to allocate a struct?
by BrowserUk (Patriarch) on Oct 28, 2014 at 21:20 UTC | |
by dissident (Beadle) on Oct 28, 2014 at 22:58 UTC | |
by BrowserUk (Patriarch) on Oct 28, 2014 at 23:30 UTC | |
by Anonymous Monk on Oct 29, 2014 at 13:36 UTC |