Bernd Oppolzer wrote: >static vs. auto: different allocation technique and time, as already explained; >static: allocated once, lifetime of the variable is the whole process >auto: allocated on every call of the proc or function, removed at the end
[ ... snipped ... ] Thanks for your informative explanation. Much appreciated. >in COBOL: WORKING STORAGE, LOCAL STORAGE (I'm no COBOL wizard) I'm not really sure what to say here, even after RTFM. I will reread my COBOL books before I comment on this, so I will STFU for now. >Now there are some peculiarities: I think ALL and EVERY languages have their peculiarities... :-D You're not allowed to argue with me. <grinnnnn!> ;-D >Option RENT with PL/1 and C, don't know for COBOL. COBOL does has a RENT / NORENT option, but there are gazillion issues with it beside that option may/may not conflict with other COBOL compiler options. >static NEVER means constant Yip. I believe all wannabee programmers should learn this fact. How difficult can it be to be understand? Oh, of course, when writing a program, YMMV and you as programmer needs to consider all facts, usage and needs of future users of your program(s). DISCLAIMER: I wrote/gave support/gave ad-hoc informal training in COBOL, Assembler, FORTRAN (in ancient times), REXX, Clist, PASCAL programs on different platforms. I have experimented/played with C, C++, and PL/I and some fancy languages like ADA, Natural, DB2 SQL, etc. for example. Groete / Greetings Elardus Engelbrecht ---------------------------------------------------------------------- For IBM-MAIN subscribe / signoff / archive access instructions, send email to [email protected] with the message: INFO IBM-MAIN
