ori Posted June 10, 2019 Report Share Posted June 10, 2019 Hi, I want to share with you a factory override issue I'm currently dealing with. I have a class (we can call it class_a), that I'm overriding, with class_a_ovrd, which extends class_a. for that, I'm using the following command, the build function of the test, before the env is being created: set_type_override_by_type(class_a::get_type(),class_a_ovrd::get_type(),"*"); after that, I can see that the override is being performed only for the build function of class_a_ovrd, i.e. only the build function of class_a_ovrd replaces the build function of class_a, but all the other functions still being taken from the original class, class_a. can you say how such thing can happen? Thanks, Ori Quote Link to comment Share on other sites More sharing options...
chr_sue Posted June 10, 2019 Report Share Posted June 10, 2019 (edited) Unfortunately you do not show a piece of code. But the 3rd argument has to be a bit type (1'b1 for replacing). Edited June 10, 2019 by chr_sue Quote Link to comment Share on other sites More sharing options...
hbhbts Posted August 1, 2019 Report Share Posted August 1, 2019 maybe you not enable polymorphism at other functions when extend from base class. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.