> Really... never noticed. ;^) Hehe. Like I said... I just woke up and didnt even see the name of the person who asked the question (else I wouldn't have pointed out the obvious to you ;^)
I guess BEST method depends on WHAT you're doing, WHY you're doing it and any specifics on HOW you need to do it. How exact the types need to be is one (if not THE) consideration. I mean are dates, numbers and/or strings enough or are you going to be needing more in depth types Say youve decided its a number but is it an int16, int32, long, etc... or does it even matter? TO decide the types in CF before passing them out to another language (which I'd assume was the BEST way to write this) you (obviously) will be stuck with mainly the is*() functions. Which kind of blows because there arent that many of them. But from a reusability view point, 'casting' the types in CF before spitting them out should make whatever it is you're doing much more flexible as to what languages it's spitting the data out to. As for WDDX, I wish I could help more but I think I've used WDDX ins and outs for a grand total of one time. Just never needed it. Of course none of this is an answer or solution to what you've asked; it's simply a post-breakfast response. I'll of course see what I can dig up. ..:.:.:.:.:.:.:.:.:.:.:.:.:.:. Bobby Hartsfield http://acoderslife.com -----Original Message----- From: Jim Davis [mailto:[EMAIL PROTECTED] Sent: Sunday, September 25, 2005 1:47 PM To: CF-Talk Subject: RE: Best way of determining CF Datatypes > -----Original Message----- > From: Bobby Hartsfield [mailto:[EMAIL PROTECTED] > Sent: Sunday, September 25, 2005 1:34 PM > To: CF-Talk > Subject: RE: Best way of determining CF Datatypes > > > For example <cfset foo = true /> is clearly Boolean while "<cfset foo = > > "true" /> isn't... but I can't figure out a way to determine which was > > used after the fact. > > And you most likely will not. It is, afterall, a typeless language. Really... never noticed. ;^) It may be difficult to do in CF, but it's not by any means impossible - WDDX already does a version of this for example. It's more to the point that while CF is, indeed typeless, it interacts heavily and often with typed (or at least less loosely typed) languages. I need to, in effect, transfer typeless CF data to either a less loosely typed language (like JavaScript) or a typed language (like Java). So how BEST to do this is the question. Again, use WDDX as the model (although I dislike some of the decisions that WDDX makes). I know it's not "easy" but you gotta do what you gotta do. It's not a question of "use the right tool" - this isn't a task in a language, it's a conversion from language to language. Some languages will do the conversion better than others but all of them should do the best job possible. Jim Davis ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Logware (www.logware.us): a new and convenient web-based time tracking application. Start tracking and documenting hours spent on a project or with a client with Logware today. Try it for free with a 15 day trial account. http://www.houseoffusion.com/banners/view.cfm?bannerid=67 Message: http://www.houseoffusion.com/lists.cfm/link=i:4:219201 Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4 Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4 Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4 Donations & Support: http://www.houseoffusion.com/tiny.cfm/54

