This is the point people often miss-understand when discussing different programming languages. Few languages prevent you doing anything. No one claims they do.
The point is some languages encourage you to do things correctly, others, make it an uphill struggle.