tor, 08 10 2009 kl. 07:29 -0700, skrev Eric Chassande-Mottin: > matlab textreads has a "commentstyle" option > where all lines starting with a "#" or "%" or "//" > are commented out when flag is set to "matlab" > or "shell" or "c++" resp. this should be simple to implement. > I gave a try (see patch below) but haven't succeed so far. > textread.cc uses classes and I am not familiar with this type of > programming. may I ask real C++ programmers in this forum > to help me solving this problem?
I tried giving this a quick look, but it wasn't obvious to me either how to implement this. My largest issue was simply that I can't figure out what this function is actually supposed to do. I played a bit around with things in Matlab, but I had to give up on understanding what the function actually does. It was, however, clear that our current implementation isn't compatible for even the most simple situations. I don't mind helping out a bit here as I could use nicer data importing tools for Octave. I think the best way to improve 'textread' would be to create an m-file implementation that gets functionality correct. Then, we can always port it to C++ if speed is an issue. Would you consider coming up with an m-file implementation? Søren ------------------------------------------------------------------------------ Come build with us! The BlackBerry(R) Developer Conference in SF, CA is the only developer event you need to attend this year. Jumpstart your developing skills, take BlackBerry mobile applications to market and stay ahead of the curve. Join us from November 9 - 12, 2009. Register now! http://p.sf.net/sfu/devconference _______________________________________________ Octave-dev mailing list Octave-dev@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/octave-dev