ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* The odd semantics of \begincsname
@ 2019-08-17  7:19 Henri Menke
  2019-08-17  8:48 ` Hans Hagen
  0 siblings, 1 reply; 4+ messages in thread
From: Henri Menke @ 2019-08-17  7:19 UTC (permalink / raw)
  To: mailing list for ConTeXt users

Dear list,

According to the LuaTeX documentation:

    “The \begincsname primitive is like \csname but doesn’t create a
    relaxed equivalent when there is no such name.”

I thought it would be possible to use this fact to skip the \relax-ed
definition when \def-ining a new control sequence, but the following MWE
fails with \inaccessible:

    \expandafter\gdef\csname yes\endcsname{}
    \expandafter\gdef\begincsname no\endcsname{}
    \bye

Is this a bug or is this behaviour intended?  Could this be fixed by
making manufacture_csname aware whether it is in a def_cmd context or
not?

Cheers, Henri

___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki     : http://contextgarden.net
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2019-08-17 10:15 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-08-17  7:19 The odd semantics of \begincsname Henri Menke
2019-08-17  8:48 ` Hans Hagen
2019-08-17  8:56   ` Henri Menke
2019-08-17 10:15     ` Hans Hagen

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).