| TIP: Click on subject to list as thread! | ANSI |
| echo: | |
|---|---|
| to: | |
| from: | |
| date: | |
| subject: | An interesting question |
Hi Neil. 07-Jan-04 18:46:00, Neil Heller wrote to All NH> I want to write a program that would contain an unknown number of NH> modules. None of the modules would contain or use global NH> variables and none would be dependent on anything outside that NH> module itself. What I envision is some way for a module to be NH> able to tell a controller: NH> 1. that it exists. 2. what it does. This would be a string NH> supplied by the module itself (such as: "What is the meaning of NH> life"). 3. what function would have to be called in order for the NH> module to spring to life. NH> Does anybody have an idea how I could implement such a beast? sounds highly operating-system dependant. some thoughts: put each module in a file, have the controller look four these files anf read what it needs to know from any correctly formatted file. in thois case given that the module uses no globals the file could just contain compiled code.... but then you don't ge to use library calls... But what gouild would such a module be? - does it just do some arithmetic, or some data transformations, and return the result? to "activate" such a module just load it into ram and run it via a pointer. (myfuncptr)(my_arg) -=> Bye <=- ---* Origin: As King Arthur said: Some days it all seems so feudal. (3:640/1042) SEEN-BY: 633/267 270 @PATH: 640/1042 531 954 774/605 123/500 106/2000 633/267 |
|
| SOURCE: echomail via fidonet.ozzmosis.com | |
Email questions or comments to sysop@ipingthereforeiam.com
All parts of this website painstakingly hand-crafted in the U.S.A.!
IPTIA BBS/MUD/Terminal/Game Server List, © 2025 IPTIA Consulting™.