uvm_config_db#(T)::set(,string inst,,) string argument context with respect to new/create name argument

In reply to jkpatel:

This line
agent = AGENT :: type_id :: create(“myagent”,this);
is really bad coding style, because it makes the debugging totally complicated. You’ll use the object name ‘agent’ but relly it takes ‘myagent’.
With respect to the scope you are right, but it is does not follow a good coding practice.
In most of all cases you are using as the 1st argument in the set/get command null’ or ‘this’. If you are using null the path defined in the 2nd argument is considered as an absolute path. If you are using ‘this’ the path is considered a a realtive path, starting from the actual object.