Revision c0c9fd5e-b8d3-4404-9a84-f5a49d68c231 - Code Golf Stack Exchange
# [Red], line-length: 10, 49 bytes
s: [prin [
"s:"
mold s
"do s"
]] do s
[Try it online!][TIO-jdugz6ww]
[Red]: http://www.red-lang.org
[TIO-jdugz6ww]: https://tio.run/##K0pN@R@UmqIQHfu/2EohuqAoM08hmksBCJSKrZTAjNz8nBSFYohYSr5CsRJXbKwCiPH/PwA "Red – Try It Online"
[Red]: http://www.red-lang.org
[TIO-jdugvjpq]: https://tio.run/##K0pN@R@UmqIQHfu/2EohuqAoM08hWqnYSolLAQhy83NSFIrBTKWUfIViJa7YWAUQ4/9/AA "Red – Try It Online"
This in fact is a [Rebol][2] quine
Explanation:
Red/Rebol's `mold` follows the coding style of putting 4 spaces offset.
s: [prin [ ; s is a block; print the following:
"s:" ; literal "s:"
mold s ; the representation of the block itself - all between []
"do s" ; literal "do s"
]] do s ; evaluate the block
[Red]: http://www.red-lang.org
[TIO-jdugftv0]: https://tio.run/##K0pN@R@UmqIQHfu/2EohuqAoM49LAQiilYqtlMAsEMjNz0lRKIZzlVLyFYohsrFcsQog3v//AA "Red – Try It Online"
[2]: https://rosettacode.org/wiki/Quine#REBOL