# Static Method

**URL:** <https://verificationacademy.com/forums/t/static-method/30147>\
**Category:** UVM\
**Tags:** UVM, static-method\
**Created:** [November 19, 2014, 6:43pm UTC](https://verificationacademy.com/forums/t/static-method/30147 "2014-11-19T18:43:03Z")\
**Posts on this page:** 1\
**Showing post:** 3

<div class="post-metadata">

**Author:** ![anthony.vu.gd-ais.com](https://verificationacademy.com/forums/letter_avatar_proxy/v4/letter/a/919ad9/32.png) [@anthony.vu.gd-ais.com](https://verificationacademy.com/forums/u/anthony.vu.gd-ais.com)\
**Post date:** [November 19, 2014, 8:39pm UTC](https://verificationacademy.com/forums/t/static-method/30147/3 "2014-11-19T20:39:40Z")

</div>

_In reply to [dave\_59](https://verificationacademy.com/forums/t/static-method/30147/2):_

Many thanks for your speedy response; you’re great always.

1. The pss\_env\_config is the returned type; when memory is allocated for the static method pss\_env\_config::get\_config, this type is not created yet. Would it not result in “undefined type” during compilation?

2. As written in line 186 of the uvm\_globals.svh, the uvm\_globals::uvm\_report\_fatal is not a static method; an access to this automatic method in a static method will result a syntax error. In the old days, we used macro `uvm_fatal_context which uses static uvm_root::get to get around this issue. Has there been a new revision of the UVM, and this issue has been taken care of and there is no need for `uvm\_\*\_context?

---

_[View the full topic](https://verificationacademy.com/forums/t/static-method/30147)._
