Menu
  • HOME
  • TAGS

Is System.Array.Clone() guaranteed to clone value types?

c#,.net,language-specifications,system.array

It works because there's absolutely no way two arrays could share the same instance of a value type. The spec doesn't specifically say how Array.Clone behaves with value types vs how it behaves with reference types. But the spec does say that instances of value types are copied, bit-by-bit, on...

Does a syntax-rules expression by itself evaluate to a value in Scheme?

scheme,chicken-scheme,language-specifications,chibi-scheme

syntax-rules returns a transformer, which is a procedure used by the expander to transform a syntactic extension into another syntactic extension. See also here. So no, it's not a special form (this has disappeared from your question in the meantime), and yes, it evaluates to a value, since Scheme has...

JSON encoding details

json,encoding,language-specifications

See RFC 4627 for the full specification. Specifically related to encoding: JSON text SHALL be encoded in Unicode. The default encoding is UTF-8. If your text isn't Unicode, it isn't JSON....