I would like to see a jallib library:

-for small misc functions/procedures like this one that we can use in
our tutorial book & samples

-for things new users don't know how to do:
make a dword out of four bytes
make 4 bytes out of a dword
take a byte out of a dword
take a bit out of a byte

If you have ever seen a new users code, you will notice a tone of
truncation warnings because they don't know how to take a byte out of
a word or dword

What do u think?

Matt.

On Oct 31, 4:39 pm, Joep Suijs <[email protected]> wrote:
> Hi Matt,
>
> 2009/10/31 mattschinkel <[email protected]>
>
>
>
> > Joep, are you saying serial_hw_write_word() it should not be in
> > serial_hardware.jal? Should the software version's procedures match
> > the hardware version?
>
> You're right and if there was no history, I'd say serial_sw_write() should
> be removed.
>
> > If it is added, others will have a choice weather to use it or not, if
> > they don't use it, it does not take any more code space.
>
> True. However, I think it is better to create a generic function with
> the desired device as a parameter. Maybe part of print.jal or in a separate
> library. And when we have this, we could mark serial_sw_write() obsolete.
>
> Joep
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"jallib" 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/jallib?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to