make routine madness
[1/2] from: antonr:lexicon at: 15-Jan-2005 11:51
Anyone seen anything like this before ?
>> test: make routine! aspec lib "_FSOUND_SetOutput-4"
** Script Error: Invalid argument: integer
** Near: test: make routine! aspec lib
>> test: make routine! [outputtype [integer!] "int" return: [char!] "signed
char"] lib "_FSOUND_SetOutput-4"
>> aspec ;== [outputtype [integer!] "int" return: [char!] "signed
char"]
For the second line of code I have copied the molded aspec output
that you can see on the last line - well, just look, they are the same.
Some sort of weird load/binding problem ?
I have tried loading and binding ...
This is really bizarre.
Oh, I think I figured it out. :)
The "integer!" should actually be a word! not a datatype!
I was trying to be "too good".
Anton.
[2/2] from: gabriele::colellachiara::com at: 15-Jan-2005 10:07
Hi Anton,
On Saturday, January 15, 2005, 1:51:19 AM, you wrote:
AR> Oh, I think I figured it out. :)
AR> The "integer!" should actually be a word! not a datatype!
AR> I was trying to be "too good".
In cases like that, MOLD/ALL may help you finding the difference.
Regards,
Gabriele.
--
Gabriele Santilli <[g--santilli--tiscalinet--it]> -- REBOL Programmer
Amiga Group Italia sez. L'Aquila --- SOON: http://www.rebol.it/