Re: JS 1.6 generics, nested macros

Juerg Lehni <[email protected]>
Newsgroups gmane.comp.java.helma.general
Message-ID <[email protected]>
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, <[email protected]>
> <[email protected]> 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
>> [email protected]
>> http://helma.org/mailman/listinfo/helma-user
>
> _______________________________________________
> Helma-user mailing list
> [email protected]
> http://helma.org/mailman/listinfo/helma-user
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.