[a / b / c / d / e / f / g / gif / h / hr / k / m / o / p / r / s / t / u / v / vg / vm / vmg / vr / vrpg / vst / w / wg] [i / ic] [r9k / s4s / vip] [cm / hm / lgbt / y] [3 / aco / adv / an / bant / biz / cgl / ck / co / diy / fa / fit / gd / hc / his / int / jp / lit / mlp / mu / n / news / out / po / pol / pw / qst / sci / soc / sp / tg / toy / trv / tv / vp / vt / wsg / wsr / x / xs] [Settings] [Search] [Mobile] [Home]
Board
Settings Mobile Home
/g/ - Technology


Thread archived.
You cannot reply anymore.


[Advertise on 4chan]


File: 1754557671568396.png (7 KB, 241x209)
7 KB
7 KB PNG
>constant variable
>>
>>106577985
Even better are variable constants. Fortran passes all function parameters as references, if you passed a constant into a function it would have to pass in the address of that constant which had to be stored somewhere in memory. On some early compilers, if you passed a constant (e.g. 0) to a function which wound up assigning a value to that parameter, this would result in all occurrences of that constant (e.g. 0) in the program changing to the new value (e.g. 42), leading to some really fascinating and fun bugs.
>>
>>106577985
aka a Label, name, or definition



[Advertise on 4chan]

Delete Post: [File Only] Style:
[Disable Mobile View / Use Desktop Site]

[Enable Mobile View / Use Mobile Site]

All trademarks and copyrights on this page are owned by their respective parties. Images uploaded are the responsibility of the Poster. Comments are owned by the Poster.