3 ms·
The module system is quite interesting - basically, every unit of compilation (Pike seems to use a file for this purpose) is loadable and treatable as-a-class (
by svieira 4y ago
The module system is quite interesting - basically, every unit of compilation (Pike seems to use a file for this purpose) is loadable and treatable as-a-class (Pike calls classes `Program`s):
https://pike.lysator.liu.se/docs/tut/oop/programs.md https://pike.lysator.liu.se/docs/tut/oop/programs.md
- em-bee 4y agoyes, that is one of the interesting aspects of pike (and also LPC). in difference to java which requires class boilerplate in each file, pike just takes the file name as the class name and the functions and variables inside as the class definition. as a beginner i learned to use inheritance simply for composition, and i didn't even realize that this was supposed to be object oriented programming. it only hit me a few years later when i realized how roxen handled requests and managed modules. i literally woke up one morning and "got" object oriented programming. btw: generally i remember calling the source class, and the compiled objects program