The SPEC-OF an Object

Carl Sassenrath, CTO
REBOL Technologies
12-Nov-2010 5:31 GMT

Article #0350
Main page || Index || Prior Article [0349] || Next Article [0351] || 5 Comments || Send feedback

In R3, functions have "specs". These are interface and operational specifications. For example, arguments passed to a function, help strings, return values, exception handling, trace/profile controls, etc.

It is intended for objects (hence modules) to also accept a spec. This is one way to provide help strings for an object, enforce typing of the object's fields, along with other features.

The problem is: what should be done with specs when a sub-object is made. If we keep the spec, it would be nice to make it a reference, not a copy.

Then, there's the issue of mold: would all sub-objects mold the spec back or not?

So, it's not well defined. It may need to wait for post 3.0.0.


Updated 16-Jul-2024 - Edit - Copyright REBOL Technologies -