Matt Moriarity <[email protected]> writes:
> i just kinda figured it would figure it out based on the type in the
> slot.

In order for that to work, you need matching eql-specializers in the
typespec->* generic functions.  The ones defined in that tutorial use
(eql 'money).  Of course, unless all slots with type float should be
interpreted as money, the :present-as/:parse-as is a better solution.

Another alternative is to (deftype money () float) and use :type money
for your slots, but, for example, if you use CLSQL, you have to take
care to let it know about the type alias, by defining methods on
database-get-type-specifier, database-output-sql-as-type,
and read-sql-value.  These are trivial forwards to the (eql 'float)
variants defined in CLSQL proper, but defining them still entails
store-specific hacking in your app, if that is your thing.

-- 
I write stuff at http://failex.blogspot.com/ now.  But the post
formatter and themes are terrible for sharing code, the primary
content, so it might go away sooner or later.

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"weblocks" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/weblocks?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to