首页>
外国专利>
Using map objects to access object properties in a dynamic object-oriented programming language
Using map objects to access object properties in a dynamic object-oriented programming language
展开▼
机译:使用地图对象以动态的面向对象编程语言访问对象属性
展开▼
页面导航
摘要
著录项
相似文献
摘要
One embodiment of the present invention provides a system that uses map objects to access object properties for a program written in a dynamic object-oriented programming language, thereby facilitating property access for languages that allow additional properties to be defined for objects at runtime. During operation, the system receives an object of an object type. This object is associated with a memory region and a given map object (from a set of map objects associated with the given object type) that describes how properties of the object are mapped to fields in the memory region. When receiving a request to access a property of the object, the system determines whether the given map object includes a field mapping for the property. If so, the system accesses a field in the memory region associated with the property using the field mapping.
展开▼