Nested associative arrays OR associative arrays of dynamic arrays

In reply to dave_59:

hi Dave , can we create a typedef using some previous typedef like :
typedef enum bit [1:0] {OKAY, ERROR, RETRY, SPLIT} response
so i want to create an associative array using response as input and logic [31:0] as key
typedef resp_t address_driver_resp [logic [31:0]] ; // will this work ?

if yes , how do we register it in our transaction_item ?