diff options
Diffstat (limited to 'zarb-ml/mageia-dev/attachments/20120406/bc00b39d/attachment-0001.html')
-rw-r--r-- | zarb-ml/mageia-dev/attachments/20120406/bc00b39d/attachment-0001.html | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/zarb-ml/mageia-dev/attachments/20120406/bc00b39d/attachment-0001.html b/zarb-ml/mageia-dev/attachments/20120406/bc00b39d/attachment-0001.html new file mode 100644 index 000000000..145d9b921 --- /dev/null +++ b/zarb-ml/mageia-dev/attachments/20120406/bc00b39d/attachment-0001.html @@ -0,0 +1,22 @@ +<br><br><div class="gmail_quote">On Fri, Apr 6, 2012 at 12:07, Pascal Terjan <span dir="ltr"><<a href="mailto:pterjan@gmail.com">pterjan@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"> + +<br><br><div class="gmail_quote"><div class="im">On Fri, Apr 6, 2012 at 09:34, Guillaume Rousse <span dir="ltr"><<a href="mailto:guillomovitch@gmail.com" target="_blank">guillomovitch@gmail.com</a>></span> wrote:<br> + +<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"> +<br> +What about using consistent variable names ? If you have a collection of 'something' stored in a hash, why should it suddenly became of collection of 'st' when transfering them into an array ?</blockquote> + + +<div><br></div></div><div>In this case, the hash contains the existing partitions, hence %parts, while the array represents the full partition table, hence @pt</div><div class="im"><div><br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"> + + + Or using a consistent format for variables storing numbers, rather than having both nb_foo and bar_number ?<br></blockquote><div><br></div></div><div>nb_primary is the number of primary partitions (count if you prefer), part_number is the position of a given partition in the table.</div> + +<div class="im"> +<div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"> +<br> +And I don't underestand the interest of using an hash for storing content with numerical indexes only. Especially if you have to convert it to an array at the end...</blockquote><div><br></div></div><div>To easily get the (potential) one with current index when filling the array. The other solution would be to first create the array with 128 default structures, then replace some of them.</div> + + +</div> +</blockquote></div><br><div>Hmm or actually just put them in the array and then fill the holes</div> |