Post Reply 
Better way to organize function and programs?
06-16-2014, 05:56 AM
Post: #19
RE: Better way to organize function and programs?
Hello,

The original idea was that you would create a program called, for example, My_Special_Math_Functions.

In this program, you would create multiple (lots) of functions such as:
EXPORT SIN2(a) begin return 2*SIN(A); end;
EXPORT COS2(a) begin return 2*cos(a); end;

etc, etc, etc...

The EXPORT keyword being there to tell the system which of your funcitons you want to expose to the outside world (and, by default, which you do not)...

so, you could have 1 program per subject, each program containing all the functions important for this subject...

This works well for a large list of small functions.
This works well for a small number of large program (with only 1 function per program, such as a Game)...
Where it breaks down is when you have lots of medium size programs, each with only 1 function in the program.

cyrille
Find all posts by this user
Quote this message in a reply
Post Reply 


Messages In This Thread
RE: Better way to organize function and programs? - cyrille de brébisson - 06-16-2014 05:56 AM



User(s) browsing this thread: 6 Guest(s)