[stringtemplate-interest] it's 60% of time in ObjectModelAdaptor.getProperty()
Oliver Zeigermann
oliver.zeigermann at gmail.com
Sun Feb 6 13:51:04 PST 2011
If you can't add static types I totally agree. And as far as I
understand you can't add static types (not even as an option) because
this would make portability of templates over target languages
impossible, right?
2011/2/6 Terence Parr <parrt at cs.usfca.edu>:
> Yep, so i can't really ever see compilation being useful for ST since i can't add static types.
> Ter
> On Feb 6, 2011, at 10:06 AM, Oliver Zeigermann wrote:
>
>> You will never know without static type declarations.
>>
>> 2011/2/6 Terence Parr <parrt at cs.usfca.edu>:
>>> here's the issue: what's the type in the cast? we don't know it.
>>> Ter
>>> On Feb 6, 2011, at 7:23 AM, Johan Stuyts wrote:
>>>
>>>>> Hi Johan, good idea. Still though, w/o a type, it's still got to use
>>>>> .invoke. There is no interface that covers every field / method in all
>>>>> possible incoming objects.
>>>>
>>>> What if you included a cast in the generated bytecode? Then you can always
>>>> invoke with type Object.
>
> _______________________________________________
> stringtemplate-interest mailing list
> stringtemplate-interest at antlr.org
> http://www.antlr.org/mailman/listinfo/stringtemplate-interest
>
More information about the stringtemplate-interest
mailing list