in reply to Re^3: how to speed up program dealing with large numbers?
in thread how to speed up program dealing with large numbers?

1) Cool, I'll run a portupgade on perl, thanks.

2) Really, I had been taught that it was at least convention, if not necessary, and I have seen others C++ code that does that.

3) Interesting, good to know. Thats really cool.

And again, thanks for all the great info.

  • Comment on Re^4: how to speed up program dealing with large numbers?

Replies are listed 'Best First'.
Re^5: how to speed up program dealing with large numbers?
by GrandFather (Saint) on Mar 22, 2010 at 09:09 UTC

    The declaration 'convention' is probably used by C programmers who have migrated to C++, but haven't adapted to it. C requires all declarations at the start. C++ (and Perl, among many other languages) allows declarations wherever you need them pretty much. The advantage is that declaration and initialisation can be done at the same time so the region in which the variable is used is clearer.


    True laziness is hard work

      Interesting, yeah, I think the people I refered to came from C.

      Thank you for all the input.