Variable cloneFunction

Clones function declaration.

Acts similar to std.traits.fullyQualifiedName run on function typem but includes original name so that resulting string can be mixed into descendant class to override it. All symbols in resulting string are fully qualified.

Probably it can be merged with fullyQualifiedName to form a more generic method but no elegant solution was proposed so far.

Declaration

module vibe.internal.meta.codegen;

// ...
string cloneFunction(alias Symbol);
// ...

Parameters

NameDescription
Symbol function declaration to clone

Returns

string that can be mixed in to declare exact duplicate of Symbol

Example

static int foo(double[] param);

static assert(cloneFunction!foo == "int foo(double[] param)");

Authors

Sönke Ludwig, Михаил Страшун

Copyright

© 2013 RejectedSoftware e.K.

License

Subject to the terms of the MIT license, as written in the included LICENSE.txt file.