15 votes
Accepted

In 16-bit MS-DOS, how do I get a file handle to the currently running .exe?

[Edit: Ooops, that question already been answered a few years ago on Stack Overflow] I'd expect there to be some reference (either a file handle or an old-fashioned FCB) in the PSP, but there's ...
user avatar
  • 173k
11 votes

In 16-bit MS-DOS, how do I get a file handle to the currently running .exe?

If definitive references is what you’re looking for, the usual one to consult is the RBIL: Format of Program Segment Prefix (PSP): Offset Size Description (Table 01378) […] 2Ch WORD ...
user avatar
  • 17.2k
7 votes

Did the Algol 68 standard allow a procedure to be called before its declaration?

RosettaCode provides the following example of mutually-recursive procedures in Algol-68: PROC (INT)INT m; # ONLY required for ELLA ALGOL 68RS - an official subset OF full ALGOL 68 # PROC f = (INT n)...
user avatar
  • 16.4k
6 votes

Did the Algol 68 standard allow a procedure to be called before its declaration?

Not an answer, but note that Algol 60 allowed use before declaration. I take this as a strong hint that Algol 68 would also do so. I ran this code on the KDF9 Whetstone Algol system. 'begin' 'boolean'...
user avatar
  • 28.3k
5 votes

What was the first programming language, other than Lisp, to have “short-circuiting” Boolean expressions?

Another candidate is MAD, the “Michigan Algorithm Decoder”. According to a 1966 manual, Object programs will skip the evaluation of the remaining terms of a disjunction (an “or” expression) as soon ...
user avatar
  • 3,357
4 votes

Did the Algol 68 standard allow a procedure to be called before its declaration?

I am by no means knowledgeable about Algol 68 - but that won't stop me. I wonder if the issue is a misunderstanding of "elaboration" when an Algol 68 program runs vs. how that is ...
user avatar
  • 4,134
2 votes

Did the Algol 68 standard allow a procedure to be called before its declaration?

Algol 68R was the first Algol 68 implementation, released before the Revised Report. The "R" is because it was a restricted subset of the language, largely to allow a single-pass compiler to ...
user avatar
  • 7,814
1 vote

What is the origin of the "my" variable/method/et-al in didactic materials?

Origin? ...I think that comes from simple human interest in taking topics out of the specific and into a more general context, in that, at least when I do this myself (which is mostly every time I ...
user avatar
  • 817

Only top scored, non community-wiki answers of a minimum length are eligible