Module vibe.internal.meta.funcattr
Helpers for working with user-defined attributes that can be attached to function or method to modify its behavior. In some sense those are similar to Python decorator. D does not support this feature natively but it can be emulated within certain code generation framework.
Functions
Name | Description |
---|---|
after
|
Marks function/method for usage with `AttributedFunction `.
|
before
|
Marks function/method for usage with `AttributedFunction `.
|
createAttributedFunction
|
Syntax sugar in top of AttributedFunction
|
Structs
Name | Description |
---|---|
AttributedFunction
|
Entry point for `funcattr` API. |
Global variables
Name | Type | Description |
---|---|---|
IsAttributedParameter
|
void
|
Checks if parameter is calculated by one of attached functions. |
Authors
Михаил Страшун
Copyright
© 2013 RejectedSoftware e.K.
License
Subject to the terms of the MIT license, as written in the included LICENSE.txt file.