Saved Bookmarks
| 1. |
What Is The Use Of $cast? |
|
Answer» Type casting in SV can be done either VIA static casting (', ', ') or DYNAMIC casting via $cast task/function. $cast is very similar to dynamic_cast of C++. It checks WHETHER the casting is possible or not in run-time and errors-out if casting is not possible. Type casting in SV can be done either via static casting (', ', ') or dynamic casting via $cast task/function. $cast is very similar to dynamic_cast of C++. It checks whether the casting is possible or not in run-time and errors-out if casting is not possible. |
|