ID:2533038
 
(See the best response by Lummox JR.)
Code:
/atom/get_examine_text(var/mob/examiner)

var/obj/faketype = type
world.log << "IT IS TIME FOR [initial(faketype.name)]."
world.log << "Hi, my name is [name]."
world.log << "Hi, my initial name is [initial(name)]."

return ..()


Output:
IT IS TIME FOR . Hi, my name is true mask. Hi, my initial name is .

Problem description:
On my project, calling initial(name) on any object returns null or "" regardless of the atom's initial name and I don't know why. initial() works for other variables I tested but for some reason it doesn't work for name

Figured it out.

If you define

/datum/
var/name


initial(name) doesn't work.
In response to BurgerBB
Best response
Please post a bug report; that's definitely a bug.