[Issue 11527] JSONValue cannot set values through named fields

d-bugmail at puremagic.com d-bugmail at puremagic.com
Sat Nov 16 04:43:19 PST 2013


https://d.puremagic.com/issues/show_bug.cgi?id=11527


John Colvin <john.loughran.colvin at gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |john.loughran.colvin at gmail.
                   |                            |com


--- Comment #3 from John Colvin <john.loughran.colvin at gmail.com> 2013-11-16 12:43:18 GMT ---
I thought this was by design as part of the new API? One of the goals was to
add type-safety.

auto v = JSONValue(1);

and

JSONValue v;
v.type = JSON_TYPE.INTEGER;
v.integer = 1;

are both valid.

-- 
Configure issuemail: https://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------


More information about the Digitalmars-d-bugs mailing list