On Thu, 28 Apr 2005 22:16:48 +0200 Tilman Sauerbeck <tilman@...> babbled:
> getarg() seems to be slightly b0rked. IMHO the attached patch should
> work, but it doesn't. It's way too much work to get string contents
> manually (for-loop) instead of doing it w/ getarg(num, 0).
nah - embryo just doesn't work like that as it has no pointers, strings are done weirdly when passed to a function. in fact all parameters are. the argument itself is not a pointer to the string but an offset from the frame pointer as to where the string is stored. i didn't invent this - this is how small came :) that's why what you are doing wont work. :( sure - maybe we could provide wrappers that did the copy for you, but the string passed is not accessible as a string as such :)
> raster, I cannot figure out why it doesn't work, can you please have a
> learn to quote: http://www.netmeister.org/news/learn2quote.html
------------- Codito, ergo sum - "I code, therefore I am" --------------
The Rasterman (Carsten Haitzler) raster@...
Tokyo, Japan (東京 日本)