>
> By regex, I only meant to support the characters + and * with the same 
> meaning as regex syntax has, I don't mean to support arbitrary regex 
> style string expansion. So we would not need parentheses or anything 
> like that, just a simple "if last char is a + or *, the preceding type 
> is multiplied 1-N or 0-N times". If someone has interest in supporting 
> full regex expansion like that, feel free, though I'd argue that 
> should only be available for cwrap() and not at all for ccall(). 
>

Right, I was just trying to point out that restricting a repeating pattern 
to the last variable does not satisfy an important use case, in which a 
*group* of variables repeats:

weighted_centroid(x1, y1, n1, x2, y2, n2, x3, y3, n3 ..., xn, yn, nn, -1, 
-1, -1);


where x,y positions are double and counts are int, and all three repeat as 
a group until the end marker is found. My throw-away dealt with that using 
a quick mod, so that I could prove to myself that our particular needs 
could, in principle, be met without much processing overhead (we  can call 
our varargs routine thousands of times over a 2D image).

If I interpret our combined comments correctly, it's that we need a 
*familiar* way to specify repeat groups, e.g., pseudo-regexp syntax, even 
if full regexp will not be implemented.




-- 
You received this message because you are subscribed to the Google Groups 
"emscripten-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to emscripten-discuss+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to