[Date Prev][Date Next][Thread Prev][Thread Next]
- Subject: Re: Are variables immutable?
- From: Hector Vido <hector_vido@...>
- Date: Thu, 26 May 2022 19:00:38 +0000 (UTC)
Yes, this is implicit as Denis wrote. Sooner or later the gc will collect this.
You can read some "clues" in these links:
This is pretty common (unless in Perl) but can cause a lot of confusion if presented too early to the student or are explained with "complex terms" (at least to me).
But again, probably I am the worst programmer in this list and most of time I don't have any idea what the guys are talking about xD
Em quinta-feira, 26 de maio de 2022 10:51:25 BRT, DENIS <firstname.lastname@example.org> escreveu:
the core of concept.
in lua (and many others languages) string are imutable (like java too)
any change of value of variable you can rehash it (recycle)
in c you can usage char array (static or dynamic)
static: char buf