A ranged extern return is a contract checked at the door: outside it, the call fails out_of_range.
extern_range.zg
# A ranged extern return is a contract checked at the door (decided 2026-09-22): outside it, the call fails out_of_range.extern.Cfnstrlen['s':ptr[uint8]]->uint64[min0,max10];# C promises at most 10; checked at the doorMAIN{let'short':="hello";let'long':="this is longer than ten";no_checklet'a':=strlen[lend'short']otherwise99;no_checklet'b':=strlen[lend'long']otherwise99;# 23 is outside 0..10: fails out_of_rangelet'c':int8='a';# proven by the bound: at most 10std::print.useful['a'," ",'b'," ",'c',newln];no_checklet'd':=strlen[lend'long']otherwise{out_of_range{std::print.useful["C lied",newln];std::exit[3];}};}