Closed GoogleCodeExporter closed 9 years ago
I edited cpp.py and added a print statement right before it, that gives:
(class C128, AssAttr(Name('self'), 'CIA2', 'OP_ASSIGN'))
CIA2
(class C128, AssAttr(Name('self'), 'VIC', 'OP_ASSIGN'))
VIC
(class C64Configurator, AssAttr(Name('self'), 'port', 'OP_ASSIGN'))
port
(class C64Configurator, AssAttr(Name('self'), 'cache_map', 'OP_ASSIGN'))
cache_map
(class C64Configurator, AssAttr(Name('self'), 'data_direction', 'OP_ASSIGN'))
data_direction
(class C64Configurator, AssAttr(Name('self'), 'B_can_write', 'OP_ASSIGN'))
B_can_write
(class C64Configurator, AssAttr(Name('self'), 'B_active', 'OP_ASSIGN'))
B_active
(class C64Configurator, AssAttr(Name('self'), 'MMU', 'OP_ASSIGN'))
MMU
(class C64Configurator, AssAttr(Name('self'), 'data_direction', 'OP_ASSIGN'))
data_direction
(class C64Configurator, AssAttr(Name('self'), 'port', 'OP_ASSIGN'))
port
(class C128Configurator, AssAttr(Name('self'), 'cache_map', 'OP_ASSIGN'))
Original comment by danny.m...@gmail.com
on 26 May 2012 at 10:47
Yeah, forgot to pass some parameter:
It said:
class C128Configurator(memory.Memory): # $D500
def __init__(self, B_active = True):
...
cache_map = self.MMU.calc_cache_map(self.registers[0], self.registers[6], self.page0_page, self.page1_page)
self.cache_map = cache_map
But self.MMU did not exist.
Original comment by danny.m...@gmail.com
on 26 May 2012 at 10:49
thanks a lot, as usual! :-) I will see if I can add a few warnings for such
cases..
Original comment by mark.duf...@gmail.com
on 26 May 2012 at 11:19
alright, made cpp.py proceed when this happens, which leads to both a shedskin
error ('cache_map has no type' for the second line) and a C++ error ('class
C128.. has no member mmu).
I will leave the issue open though, because I want to try a few other cases,
and it would be nice if 'self.MMU' would trigger a more direct shedskin
warning, but that is a bit more tricky to do.
thanks in any case for triggering :) please let me know if you run into
anything else of course..
btw I just tried to compile C64/emulators/emulators.py at SVN HEAD.. is it true
this involves almost 6,000 lines of code by now? :) (according to sloccount)..
heh, that's more python code than in shedskin..
btw2 have you ever used GIT? :-) it's awesome..
Original comment by mark.duf...@gmail.com
on 29 May 2012 at 9:47
I added a few more warnings for this kind of situtions just now for 0.9.3, so
things are looking much better on this front. closing this issue then, thanks!
Original comment by mark.duf...@gmail.com
on 5 Jan 2013 at 9:36
Original comment by mark.duf...@gmail.com
on 5 Jan 2013 at 9:37
Original issue reported on code.google.com by
danny.m...@gmail.com
on 26 May 2012 at 10:26