Saturday, December 15, 2018

Simple interface grammar

the main(argc,argv) has as its first argument the command name  itself.  So does the console loop in the new system.

So the argc, argv standard is always standard, I do not need to pipe anything though stdio to subsystems, I can always load their executables and find the entry point.

onsole has two entry interfaces:
argc,argv and *argc,argv // one use a ointer to argc

Tha is much simpler, we have a third form, put the string command line on arg one for systems that do their own tokenizing.  So, make everything simple, do a one time interface to main(argc,argv), make it sharable, write a converter or loader. Then screw the difference between entry for shared and entry for main, use main always.

No comments: