The GTMI$_NAKED mode indicates an M naked reference. This means that the first key parameter replaces the last key of the last global reference and GT.M interprets any additional key parameters as additional subscripts. For this reason, a function with a GTMI$_GLOBAL mode must precede a function with a GTMI$_NAKED mode to establish the prior reference. With GTMI$_NAKED, key1 specifies the first subscript and key2 to keyn specify optional subscripts. The naked mode is not valid for GTM$LOCK, GTM$INCLOCK, GTM$DECLOCK, GTM$ZALLOC and GTM$ZDEALLOC operations. The naked mode is also not valid for those operations pertaining to local variables.
The GTMI_NAKED mode indicates an M naked reference. This means that the first key parameter replaces the last key of the last global reference and GT.M interprets any additional key parameters as additional subscripts. For this reason, a function with a GTMI_GLOBAL mode with at least one subscript must precede a function with a GTMI_NAKED mode to establish the prior reference. With GTMI_NAKED key1 specifies the first subscript to apply to the naked reference and key2 to keyn specify optional subscripts. The naked mode is not valid for gtm_lock, gtm_inclock, gtm_declock, gtm_zalloc, and gtm_zdealloc operations.
Example:
$DESCRIPTOR(subscript1,"1") $DESCRIPTOR(subscript2,"3.1415") $DESCRIPTOR(data,"12.566") gtm$put(GTMI$_NAKED, &data, &subscript1, &subscript2) DESC_CHAR(k0[0],"12.566"mode = (short)GTMI_NAKED;DESC_MODE (k0[1],mode);DESC_CHAR (k0[2],"1");DESC_CHAR (k0[3],"3.1415");DESC_ZERO (k0[4]); status = gtm_put(k0);
This call format specifies GTMI$_NAKED as the mode, data as the source and two subscripts as key1 and key2.
This example corresponds to the M statement:
S ^(1,3.1415)=12.566