Branch: Tag:

2014-08-26

2014-08-26 12:10:32 by Per Hedbor <ph@opera.com>

Stricter return types for cast.

This, if nothing else, makes the documentation cleaner.

1496:       start_new_program();    ADD_STORAGE( struct substring ); -  ADD_FUNCTION("cast", f_substring_cast, tFunc(tStr,tMix), ID_PRIVATE); +  ADD_FUNCTION("cast", f_substring_cast, tFunc(tStr,tStr), ID_PRIVATE);    ADD_FUNCTION("`[]", f_substring_index, tFunc(tInt,tInt), 0);    ADD_FUNCTION("get_short", f_substring_get_short, tFunc(tInt,tInt), 0 );    ADD_FUNCTION("get_ushort", f_substring_get_ushort, tFunc(tInt,tInt), 0 );