It's not clear what the meaning of this array is compared to a value of 0 in func_list, but it's obvious they do different things.
--- SBBSecho 3.23-Linux
* Origin: Vertrauen - [vert/cvs/bbs].synchro.net (1:103/705)
From Rob Swindell@1:103/705 to GitLab note in main/sbbs on Sat Jan 18 11:14:20 2025
If a function exists in `func_list` with a value of 0, then it is expected to be callable with `null` or `undefined` as the first argument //without// throwing an exception.
If a function exists in `noargs_required` then it is expected to be callable with **no** arguments without throwing an exception.
--- SBBSecho 3.23-Linux
* Origin: Vertrauen - [vert/cvs/bbs].synchro.net (1:103/705)
From Deucе@1:103/705 to GitLab note in main/sbbs on Sat Jan 18 18:26:03 2025
I guess the comment is wrong then?
`// Value (e.g. 0, 1) is number of non-null/undefined args required`
--- SBBSecho 3.23-Linux
* Origin: Vertrauen - [vert/cvs/bbs].synchro.net (1:103/705)
From Rob Swindell@1:103/705 to GitLab note in main/sbbs on Sat Jan 18 19:50:00 2025
How is that wrong? If the element value is 0, then a caller can call the function with a (single) null/undefined argument. If it's 1, they can't (it'll throw an exception).
Calling with a null/undefined argument is different than calling with no arguments.
--- SBBSecho 3.23-Linux
* Origin: Vertrauen - [vert/cvs/bbs].synchro.net (1:103/705)
From Deucе@1:103/705 to GitLab note in main/sbbs on Sun Jan 19 10:28:23 2025
It translates to "Zero is the number of non-null/undefined args required." Which does not translate to "One is the number of null/undefined args allowed." --- SBBSecho 3.23-Linux
* Origin: Vertrauen - [vert/cvs/bbs].synchro.net (1:103/705)
Who's Online
Recent Visitors
Bob Worm
Tue Jul 28 16:01:18 2026
from
Wales, Uk
via
Telnet
Rixter
Tue Jul 28 13:42:46 2026
from
Madison, Nc
via
Telnet
Krenn
Tue Jul 28 11:59:57 2026
from
Sydney, Nsw
via
Telnet
Rixter
Tue Jul 28 01:23:48 2026
from
Madison, Nc
via
Telnet
Centurion
Mon Jul 27 22:50:42 2026
from
Berea, Ohio
via
Telnet
Ataricrypt
Mon Jul 27 19:19:17 2026
from
England
via
Telnet
Bob Worm
Mon Jul 27 15:19:55 2026
from
Wales, Uk
via
Telnet
Rixter
Mon Jul 27 13:04:59 2026
from
Madison, Nc
via
Telnet