Issue 27: adapt n_tot param of format.jal
http://code.google.com/p/jallib/issues/detail?id=27

Comment #3 by jsuijs:
- added format_dword_hex makes it complete.
- it did not generate any JSG errors on the capital vars, but changed them  
to lower
case anyway.

There are still some issue's I don't like with this library. Basicly:
* n_tot defines the number of chars printed, except for the decimal point.
* if the var type is signed, one char is always devoted to this (either '-'  
or ' ')
* when there is not enough room to format the var properly, it gives strange
unpredicatable (repeatable but too complex to predict by a user) results.

I added this lib because I think it is usefull with it's limitations.
IMHO, we should rewrite the decimal (signed/unsigned) procedures of this  
lib one
day, according to the following rules:
- the libs gives a right-adjusted output of exactly n_tot chars.
- signed positive values should not require one space for the (in this case  
not-
used) sign.
- when the value does not fit within the disignated space, '#' signs are  
displayed.
- (to concider:) chars behind the decimal point (including the point  
itself) can be
omitted if the designated space is too small. (extra: what if the last char  
is this
decimal point? Remove it also?)

And the way to go: make a dword procedure to handle this all and create  
stubs for
all other var types to call this dword procedure.

Joep







-- 
You received this message because you are listed in the owner
or CC fields of this issue, or because you starred this issue.
You may adjust your issue notification preferences at:
http://code.google.com/hosting/settings

--~--~---------~--~----~------------~-------~--~----~
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