Ticket #1752 (closed bug: fixed)

Opened 11 years ago

Last modified 11 years ago

Unclear documentation for find_name

Reported by: moritz Owned by:
Priority: normal Milestone:
Component: docs Version: 2.6.0
Severity: medium Keywords:
Cc: Language:
Patch status: Platform:

Description

Quoting  http://docs.parrot.org/parrot/2.7.0/html/src/ops/var.ops.html

"Find the name $2 in lexical, current, global, or builtin namespace and store it in $1."

if it's really an "or", how is it decided where to look for?

What happens if multiple symbols of the same name are found in different namespaces?

Change History

Changed 11 years ago by coke

This calls Parrot_ns_find_named_item under the covers, which itself has a bug @ TT #1223

Note that the docs for that function say more explicitly:

Find the given C<name> in lexicals, then the current namespace, then the HLL
root namespace, and finally Parrot builtins.  If the name isn't found
anywhere, return PMCNULL.

Changed 11 years ago by coke

  • status changed from new to closed
  • resolution set to fixed

docs updated to reflect reality in r48684.

Note: See TracTickets for help on using tickets.