Nand2Tetris Questions and Answers Forum
›
Compiler
›
Chapter 9
Search
everywhere
only in this topic
Advanced Search
Possible bug in supplied OS/Jack Compiler
Classic
List
Threaded
♦
♦
Locked
2 messages
Uli Kastlunger
Reply
|
Threaded
Open this post in threaded view
♦
♦
|
Possible bug in supplied OS/Jack Compiler
Hello,
If a class has no member variables, instantiating will fail.
best regards,
uli
brbecker
Reply
|
Threaded
Open this post in threaded view
♦
♦
|
Re: Possible bug in supplied OS/Jack Compiler
I can confirm this bug. I had a class with only static variables and it throws ERR5 when the compiler code runs Memory.alloc(0). Adding a single junk "field" solved the problem.
Free forum by Nabble
Edit this page