On Sat, Nov 7, 2009 at 3:13 PM, Chouser <chou...@gmail.com> wrote:
>
> On Sat, Nov 7, 2009 at 2:57 PM, David Brown <cloj...@davidb.org> wrote:
>>
>> On Sat, Nov 07, 2009 at 11:48:32AM -0500, Chouser wrote:
>>
>>>This should work:
>>>
>>>    (defn update1 [#^MessageDigest md, #^bytes item]
>>>      (.update md item))
>>
>> This does seem to work, thanks.
>>
>> Any reason that 'doubles' is also defined as an array cast function,
>> but 'bytes' is not?
>
> I don't know of any deep reason.
>
> Not only bytes, but also array-cast functions don't exist for
> chars, shorts or booleans.
>
> Also there are factory functions for several primitive array
> types, but char-array, short-array, byte-array, and
> boolean-array don't exist.
>

There is no deep reason. Patch welcome for unifying the array support
for primitives.

Rich

-- 
You received this message because you are subscribed to the Google
Groups "Clojure" group.
To post to this group, send email to clojure@googlegroups.com
Note that posts from new members are moderated - please be patient with your 
first post.
To unsubscribe from this group, send email to
clojure+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en

Reply via email to