Re: popFront with input variables

2012-08-31 Thread Jonathan M Davis
On Friday, August 31, 2012 15:56:32 Joseph Rushton Wakeling wrote: > Hello all, > > Is it considered legit in any circumstances for popFront to take an input > variable (e.g. a random number generator)? Or is it required always to have > no input variables? Don't do it. Technically speaking, as l

Re: popFront with input variables

2012-08-31 Thread Simen Kjaeraas
On Fri, 31 Aug 2012 16:56:32 +0200, Joseph Rushton Wakeling wrote: Hello all, Is it considered legit in any circumstances for popFront to take an input variable (e.g. a random number generator)? Or is it required always to have no input variables? No parameters, or at least it should

Re: popFront with input variables

2012-08-31 Thread bearophile
Joseph Rushton Wakeling: Is it considered legit in any circumstances for popFront to take an input variable (e.g. a random number generator)? Or is it required always to have no input variables? popFront is meant to be called by foreach, or to be verified by the isSomething compile-time test

popFront with input variables

2012-08-31 Thread Joseph Rushton Wakeling
Hello all, Is it considered legit in any circumstances for popFront to take an input variable (e.g. a random number generator)? Or is it required always to have no input variables? Thanks & best wishes, -- Joe