Is there a system in which program execution and function call are unified?

I would like to be able to do one or more of the following: - call any function from the program not only the main one - skip parameters that are not only strings (not just argv) - return the program not only int (return code from the main one) - assign returned values ​​to shell level variables to pass them to other programs

You get the idea. For example, python toplevel allows this for python programs. What about c ++? Or a Linux ELF replacement that would allow this?

+3
source share
5 answers

, , / vxWorks .

vxWorks - ( GUI).

+2

, , DLL Windows, , , int, float fixed strings.

++ . , , ++ s std:: map - , ?

++, cum language, , - Smalltalk. , Squeak, .

+2

Windows RUNDLL32 DLL,

RUNDLL32.EXE USER32.DLL,SwapMouseButton
+2
+1

, ? , ?

0

Source: https://habr.com/ru/post/1707108/


All Articles