src/melon/modules/object/object_module.c
static TByte removeKeyFunc(VM* vm)
{
    melM_arg(vm, obj, MELON_TYPE_OBJECT, 0);
    melM_arg(vm, key, MELON_TYPE_NONE, 1);

    melM_stackEnsure(&vm->stack, vm->stack.top + 1);
    Value* result = melM_stackAllocRaw(&vm->stack);
    result->type = MELON_TYPE_BOOL;
    result->pack.value.boolean = melRemoveKeyObject(vm, obj->pack.obj, key) == 0;

    return 1;
}
/***
 * Removes a given key from an `Object`.
 * This may cause some internal re-allocation to be triggered and it's not the
 * same as setting a key to `null` as the key will not appear in enumeration.
 * 
 * @arg obj The object holding the key
 * @arg key The key to remove
 * 
 * @returns `true` if the key could be found, `false` otherwise.
 */
Removes a given key from an `Object`.
This may cause some internal re-allocation to be triggered and it's not the
same as setting a key to `null` as the key will not appear in enumeration.

@arg obj The object holding the key
@arg key The key to remove

@returns `true` if the key could be found, `false` otherwise.
Removes a given key from an ` Object ` . This may cause some internal re - allocation to be triggered and it ' s not the same as setting a key to ` null ` as the key will not appear in enumeration . @arg obj The object holding the key @arg key The key to remove @returns ` true ` if the key could be found ` false ` otherwise .
static TByte removeKeyFunc(VM* vm)
{
    melM_arg(vm, obj, MELON_TYPE_OBJECT, 0);
    melM_arg(vm, key, MELON_TYPE_NONE, 1);
    melM_stackEnsure(&vm->stack, vm->stack.top + 1);
    Value* result = melM_stackAllocRaw(&vm->stack);
    result->type = MELON_TYPE_BOOL;
    result->pack.value.boolean = melRemoveKeyObject(vm, obj->pack.obj, key) == 0;
    return 1;
}
static TByte removeKeyFunc ( VM * vm ) { melM_arg ( vm , obj , MELON_TYPE_OBJECT , 0 ) ; melM_arg ( vm , key , MELON_TYPE_NONE , 1 ) ; melM_stackEnsure ( & vm -> stack , vm -> stack . top + 1 ) ; Value * result = melM_stackAllocRaw ( & vm -> stack ) ; result -> type = MELON_TYPE_BOOL ; result -> pack . value . boolean = melRemoveKeyObject ( vm , obj -> pack . obj , key ) == 0 ; return 1 ; }
Removes a given key from an `Object`.
Removes a given key from an ` Object ` .