jerry gay wrote:

i'd prefer 'count_eh', to match every other exception handler related
op that has an '_eh' suffix. seems silly to have just one with a 'eh_'
prefix.

'count_eh' isn't distinctive enough.

Another possibility is not to provide an opcode for the number of exception handlers, since it's a relatively uncommon operation, and leave that as an 'inspect' option on the concurrency scheduler.

Probably the most common use of 'eh_count' would be to find the number of elements in the array of exception handlers returned by 'get_all_eh' before performing some operation on it, in which case calling the elements vtable function on the array is good enough.

also, i'd suggest 'get_all_eh' rather than 'get_ehs', both to make it
more visually distinct from 'get_eh' and also to make it match the
'_eh' suffix of the other ops.

+1

Allison

Reply via email to