Hi Guys, Seb, if you don't know which lib to choose, then there probably will be more people out there. So maybe it is good to go into the difference first.
format.jal was created by Stef and provides functions to print vars and control the format. This can be fixed point format, date etc. The functions take more parameters then just straight forward output of vars. IMHO format.jal is very usefull if you want to print into a tight space, like lcd's. Downside of the lib iirc is that it does not support var types of jal. And it does not always does fill exactly the space given. For my personal use (debugging via the serial port) I needed a lib that can print all jal var types in hex and decimal format. Formatting is not needed. So I created print.jal, based on the genious structure of 'pseudo var streams' that Stef used for format.jal. Richard, I don't know if you intend to go to one interface for both simple and formatted print. I would not be in favor for this, because I think the formatted output is valuable, but the (more compact call of) print interface is also good to have. So I'd like to keep both API's. Now about merging of files I think there remains a need for both libs' function. But if it is more easy to base one lib on the other or share functions, this would be wise. Duplicate code should be avoided, just like similar code. Apart from this, we need to decide for the structure. - We could merge both into one lib. The one to be depricated should contain two lines: one with the message and one to include the remaining lib. - We could use one lib as the base and the second one just for the stubs. The second one should then include the first one - The base could be moved to a third, generic lib, leaving the stubs into the two current libs. But this is technical. If it is difficult to choose, then merging them would be best because users not have to choose any more *and* see the alternative functions when they look at the documentation. 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 -~----------~----~----~----~------~----~------~--~---
