On Sun, Jan 28, 2024 at 8:17 AM Sven Schreiber
<sven.schreiber(a)fu-berlin.de> wrote:
 Hi function writers,
 there's a slight problem with the bcheck() function, see this example:
 <hansl>
 function void bcheckcheck (bundle b[null])
      bundle targ = _()
      eval bcheck(&targ, b) # error: 2nd arg is empty
 end function
 bcheckcheck()
 </hansl>
 The point is that the main purpose of bcheck is to handle a bundle with
 options supplied by the user (here: "b"). So if the user is happy with
 the defaults and doesn't supply such a bundle, I'd argue that bcheck
 should simply accept that and do nothing. 
OK, it now does so in git, provided that the third argument to bcheck
is not given. (This is an array of names of items that the caller is
required to specify, known as "required-keys" in the bcheck
documentation.) If required-keys is given and the user-bundle is null,
bcheck returns non-zero indicating that the caller's input is
insufficient.
Allin