Creating Structs/Classes at runtime?

Ali Çehreli acehreli at yahoo.com
Mon Feb 18 08:54:59 PST 2013


On 02/18/2013 02:55 AM, Brian Brady wrote:
 > On Monday, 18 February 2013 at 05:26:39 UTC, Ali Çehreli wrote:

 >> What I see there is a label and a number of integers. Here is a simple
 >> parser that takes advantage of the %( and %) grouping format specifiers:
 >>
 > Aye, in this instance it is just that, but I was looking for a more
 > generalised code to account for, for example, when the first 2 are
 > labels, or the first and third ...

You mean like this?

10,20,label,1,2,3,4

Then what are 10 and 20 on that line? Do they belong to the previous 
label? If so, I think this format is too free-form to be parsed by a 
general solution like csvReader. It looks like something special needs 
to be done and it is hard to say without knowing the meanings of 10 and 
20 above. :)

Ali



More information about the Digitalmars-d-learn mailing list