Agreed.

I fixed up the code.

Many thanks to Patricia for her fix to the String problem.

Dan Crawl will work on the Kepler build, I'll set him up with write privis on the ptII tree shortly.

I think our work here on DateToken is pretty much complete.

_Christopher

On 6/23/14 2:48 PM, Marten Lohstroh wrote:
On Mon, Jun 23, 2014 at 10:53 AM, Christopher Brooks
<[email protected]> wrote:
I added a convert() method to DateToken which seems to work well. I did hack
in a check for StringToken which will try to instantiate a DateToken.  I'm
not sure if that is right.
This seems wrong to me. It is not generally possible to convert a
String into a Date. Also, the type lattice doesn't permit that
conversion. Type inference is supposed to yield a typing of which the
automatic type conversions that it imposes during run time work
without exception. We should not misuse the conversion method to build
a customized parser.

Marten

--
Marten Lohstroh, Msc. | Associate Specialist
University of California | 545Q Cory Hall
Berkeley, CA 94720  | +1 510 282 9135


--
Christopher Brooks, PMP                       University of California
Academic Program Manager & Software Engineer  US Mail: 337 Cory Hall
CHESS/iCyPhy/Ptolemy/TerraSwarm               Berkeley, CA 94720-1774
[email protected], 707.332.0670           (Office: 545Q Cory)

_______________________________________________
Kepler-dev mailing list
[email protected]
http://lists.nceas.ucsb.edu/kepler/mailman/listinfo/kepler-dev

Reply via email to