ID:2965208
 
BYOND Version:515
Operating System:Windows 10 Home
Web Browser:Firefox 135.0
Applies to:Dream Maker
Status: Open

Issue hasn't been assigned a status value.
Descriptive Problem Summary:

When using the path operator to look up a proc, it will have difficulties crossing "base types", ie `/mob` to `/atom`.

Numbered Steps to Reproduce Problem:

- Attempt to get a proc path using the path operator
- If the proc is defined on your base type, it will find it no problem
- If the proc is defined on a base type higher, it will not compile

Code Snippet (if applicable) to Reproduce Problem:
/datum/proc/myproc()
/mob/living/myproc()

/mob/proc/myotherproc()
/mob/living/myotherproc()

world << "[/mob.proc/myotherproc]"
world << "[/mob/living.proc/myotherproc]"

world << "[/datum.proc/myproc]"
world << "[/mob/living.proc/myproc]"


Expected Results:

/mob/proc/myotherproc
/mob/proc/myotherproc

/datum/proc/myproc
/datum/proc/myproc


Actual Results:

Compiler error
code.dm:13:error: /mob/living.proc/myproc: undefined type path


When commenting out the second set of outputs, the follow output is obtained:
/mob/proc/myotherproc
/mob/proc/myotherproc

Which pinpoints the issue to crossing basetypes (`/mob` to `/datum`)

Did the problem NOT occur in any earlier versions? If so, what was the last version that worked? (Visit http://www.byond.com/download/build to download old versions for testing.)

Workarounds:

Use :: or use the lowest base type possible

Login to reply.