pdf-raku / PDF-Class-raku

PDF Document Object Model (under construction)
Artistic License 2.0
7 stars 3 forks source link

Convert PDF::DOM::* to roles. Simplify PDF::DOM::Delegator and PDF::Reader interface #5

Closed dwarring closed 8 years ago

dwarring commented 9 years ago

Currently, the PDF::Reader.ind-obj method fully realizes DOM objects using an unnecessary and convoluted callback mechanism. This is currently needed to ensure objects are stantiated to the correct type.

But if all of PDF::DOM classes are converted to roles, We can then simply subclass the ind-obj method then apply the roles at run-time. Simpler, more conventional and easier to extend.

dwarring commented 9 years ago

Both classes an roles are needed for various reasons. See closed PDF::DAO issue #11 for details.

dwarring commented 8 years ago

This is being revisited. The intention is to completely remove PDF::DAO::Delegator. Types will be completely determined and applied from the type declarations in the PDF::Doc::Type::* roles

dwarring commented 8 years ago

Closing in favour of #7. Classes autoloading is currently being used to optimize load and startup times.