16 ms·
> The following expressions are lvalue expressions: [...] a string literal, such as "Hello, world!" That's pretty interesting. I'm not even sure how to test th
by jolmg 7y ago
> The following expressions are lvalue expressions: [...] a string literal, such as "Hello, world!"
That's pretty interesting. I'm not even sure how to test the effect of
"Hello, world!" = <something>
I imagine the reason this is allowed has something to do with how strings decay into pointers.
> I found it way easier to deal with ... Ruby documentation for example.
Maybe in documentation detailing the methods available, but as far as I know, there's no official spec for the syntax nor the details of the semantics of the language.