The invention relates to a method for modularly adapting a programmable controller, comprising: providing a basic
runtime system; defining unambiguous references in the basic
runtime system in a prescribed order (S1, S2, S3; 330, 332, 334; 402, 404, 406, 408, 410, 412, 414); providing at least one
function object (100; F1, F2, F3; 320, 322) having one or more methods (104) to be implemented and having at least one
function pointer to one or more of the methods, wherein each
function pointer is linked with a defined unambiguous reference; and executing at least one of the provided function objects (100; F1, F2, F3; 320, 322) based on the linked unambiguous references.