Spin language improvement
FredBlais
Posts: 379
Do you think that parallax will improve their spin language in the future (maybe with the release of prop2)·with data structure and/or multi-dimensional array? And maybe with some more advanced·OOP capabilities?
Comments
I have no idea - but Parallax does pay attention to what we ask for here.
- H
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Composite NTSC sprite driver: Forum
NTSC & PAL driver templates: ObEx Forum
OnePinTVText driver: ObEx Forum
Sphinx is an open source Spin compiler. If you're really ambitious, you could·add your own extensions.
So (skipping all usual CON, VAR, OBJ etc) instead of
you could have
It allows for tidier code with less chance of off-by-one errors, has the potential to be more efficient and fits well with the syntax used elsewhere.
Post Edited (agodwin) : 8/13/2009 12:06:28 PM GMT
Can something like your example code be generated in spin (using DAT or VAR)? If so, how? Want to generate an array that will include binary numbers from 000000 (00) to 111111 (3F). Then send specific elements to i/o pins ( outa something[noparse][[/noparse]25] )? Thanks and have a great weekend.
Bob