| TIP: Click on subject to list as thread! | ANSI |
| echo: | |
|---|---|
| to: | |
| from: | |
| date: | |
| subject: | For loops in C... |
RM> Declare the function "inline". Neat, fast, takes a bit more RM> space in the exe. BL> In C, or Pascal? RM> C. I don't do Pascal. BL> Isn't that what a macro does in C anyway? RM> yes, but the compiler can give more meaningful error messages ROFL!! I'd like to see that! My Borland C compiler gives the *least* meaningful error messages imaginable. RM> er.. does inline mean the same in Pascal as it does in C? Who knows? I don't do inline in C. RM> In C, it means that when you write a function call, like RM> z = add_numbers(x,y); RM> then instead of placing a call to the function add_numbers() at RM> that point, the compiler writes a complete copy of the code for RM> add_numbers, eliminating the function call. Oh... like a macro, only with more meaningful error messages. ROFL! I'd give you some examples but they are so meaningless I can't remember them. Things like: zonk twack is internal hongbug. That was one of the more meaningful error messages. In Pascal, the inline directive inserts the actual code you put there. Regards, Bob ___ Blue Wave/QWK v2.12 @EOT: ---* Origin: Precision Nonsense, Sydney (3:711/934.12) SEEN-BY: 711/934 712/610 624 @PATH: 711/934 |
|
| 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™.