ResolveContextAliases

ResolveContextAliases

is an option for Names, Contexts and related functions to control whether to resolve aliases when searching for symbols that match a string pattern.

Details

  • By default, Names and similar functions match string patterns against both the real names of symbols and shorter forms that could be typed in due to entries in $ContextAliases. With the setting ResolveContextAliasesFalse, the entries of $ContextAliases are ignored, and patterns are matched only against real symbol or context names.

Examples

Basic Examples  (1)

Create a context alias:

Create a symbol using the alias:

By default, Names searches using the current aliases:

With ResolveContextAliasesFalse, searches using the alias fail:

Using the true name of the symbol still works:

Wolfram Research (2021), ResolveContextAliases, Wolfram Language function, https://reference.wolfram.com/language/ref/ResolveContextAliases.html.

Text

Wolfram Research (2021), ResolveContextAliases, Wolfram Language function, https://reference.wolfram.com/language/ref/ResolveContextAliases.html.

CMS

Wolfram Language. 2021. "ResolveContextAliases." Wolfram Language & System Documentation Center. Wolfram Research. https://reference.wolfram.com/language/ref/ResolveContextAliases.html.

APA

Wolfram Language. (2021). ResolveContextAliases. Wolfram Language & System Documentation Center. Retrieved from https://reference.wolfram.com/language/ref/ResolveContextAliases.html

BibTeX

@misc{reference.wolfram_2024_resolvecontextaliases, author="Wolfram Research", title="{ResolveContextAliases}", year="2021", howpublished="\url{https://reference.wolfram.com/language/ref/ResolveContextAliases.html}", note=[Accessed: 30-December-2024 ]}

BibLaTeX

@online{reference.wolfram_2024_resolvecontextaliases, organization={Wolfram Research}, title={ResolveContextAliases}, year={2021}, url={https://reference.wolfram.com/language/ref/ResolveContextAliases.html}, note=[Accessed: 30-December-2024 ]}