Hi,

 

I’ve just ran into a behaviour that runs against what is shown on the wiki, https://wiki.contextgarden.net/System_Macros/Comma_Separated_Lists

Maybe a bug?

 

The wiki says you can use \getcommacommandsize to get the length of a comma separated list, but it does not seem to work. MWE below.

 

Best,

Denis

 

 

\define\somelist

  {foo, bar, baz}

 

\starttext

 

\getcommacommandsize[\somelist]

\commalistsize

% Expected : 3

% Actual : 1

 

\expandafter\getcommalistsize\expandafter[\somelist]

\commalistsize

% Expected : 3

% Actual : 3

 

\stoptext