| 159 | |
| 160 | === Issues === |
| 161 | |
| 162 | Should an FdoStringValue::Create ( !FdoDataValue*, etc. ) function be added? It would make the API more consistent but provides limited added value over FdoStringValue::Create( !FdoString* ). For example, the following code could make use of this function: |
| 163 | |
| 164 | |
| 165 | {{{ |
| 166 | FdoPtr<FdoInt32Value> val1 = FdoInt32::Create( 1234 ); |
| 167 | FdoPtr<FdoStringValue> val2 = FdoStringValue::Create( val1 ); |
| 168 | }}} |
| 169 | |
| 170 | However, the above can currently be done by: |
| 171 | |
| 172 | |
| 173 | {{{ |
| 174 | FdoPtr<FdoInt32Value> val1 = FdoInt32::Create( 1234 ); |
| 175 | FdoPtr<FdoStringValue> val2 = FdoStringValue::Create( val1->ToString() ); |
| 176 | }}} |
| 177 | |