> I read that you can't distribute code that has no license.
You can. It's just that unless otherwise stated, the owner has the copyright in most legislation. Without the license, if you derive from someone's code, he can sue you stating he never granted you the right to use his work.
Code is, generally speaking, copyrighted. Copying something copyrighted without permission is copyright infringement. A license is one way to get permission in writing.
Why can't you do that?
Will someone punish you for that if author won't sue anybody?
Will his descendants inherit the right to sue distributor?