| TIP: Click on subject to list as thread! | ANSI |
| echo: | |
|---|---|
| to: | |
| from: | |
| date: | |
| subject: | An interesting question |
Neil Heller wrote in a message 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 variables
NH> and none would be dependent on anything outside that module
NH> itself. What I envision is some way for a module to be able to
NH> tell a controller:
NH> 1. that it exists.
Make one of the modules mandatory ("main{}" :-) and use it to
"register" whatever else gets included.
NH> 2. what it does. This would be a string supplied by the
NH> module itself (such as: "What is the meaning of life").
That's kinda application-dependent, isn't it?
NH> 3. what function would have to be called in order for the
NH> module to spring to life.
Pass a pointer to a function?
NH> Does anybody have an idea how I could implement such a beast?
See above.
---
* Origin: TANSTAAFL BBS 717-838-8539 (1:270/615)SEEN-BY: 633/267 270 @PATH: 270/615 150/220 3613/1275 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™.