answersLogoWhite

0


Best Answer

both struct and unit are objects just like in any other OOP.

the difference is in the time of creation of the object. while struct can be created and recreated at any time during the run (just like doing x=new(); in other OOP languages), units are created only at the beginning, and are static, meaning that they cannot be deallocated during run-time. however, their fields can still be changed.

in other words, all the units that are under sys (top level) are automatically generated at "world creation", and no other units can be created. structs are used for dynamic data that is allocated and dealloacated during the run

User Avatar

Wiki User

13y ago
This answer is:
User Avatar

Add your answer:

Earn +20 pts
Q: What is the difference between struct and unit in specman e?
Write your answer...
Submit
Still have questions?
magnify glass
imp
Related questions

What is the difference between a unit cube and a cubic unit?

Nothing


What is the difference between a unit of stock and a share of stock?

No difference. A unit of stock is called a share.


What is the difference between scheme of work and unit plan?

There is no difference between a unit plan and a scheme of wok. thank u. By highkult


What the difference between the laser unit of Noritsu QSS32 and QSS34?

There is no difference.


Difference between structure and class in c?

In C#, a struct is a Value type derived from Object, and provides no inheritance.A class is also derived from Object but as a Referencetype, also allow subtypes to be drived from a class, unless it is declared as sealed.That is, a struct like:public struct A {}anda class like:public sealed class B {}Are almost the same, except when an instance being passed as an argument to a method, an instance of A is passed by value, while an instance of B is passed by reference (by default).A class can be declared as abstract, while a struct cannot be one.class provides a class hierarchy (yes you can build a class tree), while struct is a flat and boring 1-level sealed module unit (but as a value type).


What is the difference between a tangent and a unit tangent?

1


Explain the difference between molecule and formula unit?

The formula unit is the representation of a molecule.


What is the difference between meters and milliliters?

A meter is a unit of length; a milliliter is a unit of volume.


What is the difference between pound and inch?

The pound is a mass unit while inch is a length unit


What is the difference between a pica and a pixel?

A pica is a unit of type size, a pixel is a unit of illumination.


What is the difference between ohms and volts?

ohms is the unit of resistance while volts is the unit of voltage


What is the difference between temperature and degree?

A degree is a unit of temperature.