|
|
Label: ♦english
♦bug report
Nightwalker
created at Sunday, 2010-06-27, 13:08:48
3 Replies, 878 Hits
Comments
fu commented at Monday, 2010-06-28, 02:33:06
The second and third bug are now fixed and updated to the source repository.
Regarding the first one, if you return or yield something in the middle of a routine, which has no return statement in its end, a inconsistent typing error will be raised:
routine test()
In the end of test() , it returns nothing, but in the loop, an integer is returned. So there is a inconsistent typing in such case. If what you encountered is not like this, please demonstrate it in an example. { while(1) return 1; } Regarding line location reported by an exception, I think the locations of both the actual line raising the exception and the corresponding line in the macro should be reported. I will handle this when I make improvements to enhance DVM's error diagnostics capabilities as you suggested previously.
Nightwalker commented at Monday, 2010-06-28, 10:26:58
fu commented at Tuesday, 2010-06-29, 00:42:05
that behavior of choosing an overloaded routine with more generic types over one with more precise types is unreasonable, it need to be fixed. Handling generic types for function/method calls is a bit complicated, there might be some other problems too, some improvements need to be done in the relevant parts.
(Warnings will be raised for duplicated routines with the same prototype.) |
fu: ... I forgot to say something about the plan for the whole new year in my previous reply. Well, besides w ... (Jan.19,01:40) fu: ... Happy new dragon year (which will start from this sunday)! Actually, it was a busy month (I wish th ... (Jan.18,22:46) ybabel: What's the plan for the new year ? Hello 'vry budy :- ) happy new year (when is the new year for you Fu ?) I saw you come back and comm ... (Jan.18,18:59) |