In reply to dave_59:
Based on this statement:
“Objects get constructed dynamically during execution, and the search for identifiers needs to happen during compilation”
Which makes sense, the dynamic object does not exist at compile time, how could it possibly be accessed???
Therefore, it seems like this task you tweaked for me should not work, because it refers to an object which is dynamic and does not exist at compile time. But it compiles, runs, and accesses the buried dynamic object (Questa/EDA Playground). There seems to be some way that the path to a future created object is allowed/reconciled/facilitated at compile time?
How does this work?
task printRefFull();
$display("Ref full path value = %0d",$root.tb.env_inst.driver1_inst.someint);
endtask