So, User-Defined Attributes

Walter Bright newshound2 at digitalmars.com
Sun Jan 6 03:27:00 PST 2013


On 1/6/2013 1:48 AM, Philippe Sigaud wrote:
> Walter, what is the official way to return an attributed value?
>
> XXX? foo()
> {
>      @Marked int i;
>      return i;
> }
>

Values do not have attributes. Attributes are attached to symbols - not values 
or types.


More information about the Digitalmars-d mailing list