[Helma-user] JS 1.6 generics, nested macros

Juerg Lehni juerg at scratchdisk.com
Thu Apr 12 14:42:05 CEST 2007


Ok, ignore this. I've followed the link now ;)

J

On 12 Apr 2007, at 08:35, Juerg Lehni wrote:

> Shouldn't you try this instead?
>
> js> print(Array.prototype.forEach);
> js> print(String.prototype.replace);
>
> or:
>
> js> print([].forEach);
> js> print("".replace);
>
> Jürg
>
> On 12 Apr 2007, at 02:54, <tobias.schaefer at orf.at>
> <tobias.schaefer at orf.at> wrote:
>
>> Hi there
>>
>> just wanted let you know that I did not get the Array / String
>> generics [1] to work:
>>
>> $ java -cp lib/rhino.jar org.mozilla.javascript.tools.shell.Main
>> Rhino 1.6 release 6 Pre 2007 04 05
>> js> print(Array.forEach);
>> undefined
>> js> print(String.replace);
>> undefined
>>
>> Another feature announced with Helma 1.6RC are nested macros; they
>> seem to have an issue, too, as already noted at help.antville.org
>> [2]. I can confirm that this in fact does not work in some
>> circumstances.
>>
>> Ciao,
>> tobi
>>
>> --
>>
>> [1] http://developer.mozilla.org/en/docs/
>> New_in_JavaScript_1.6#Array_and_String_generics
>> [2] http://help.antville.org/stories/1607522/
>>
>> _______________________________________________
>> Helma-user mailing list
>> Helma-user at helma.org
>> http://helma.org/mailman/listinfo/helma-user
>
> _______________________________________________
> Helma-user mailing list
> Helma-user at helma.org
> http://helma.org/mailman/listinfo/helma-user



More information about the Helma-user mailing list