Why D Needs Attributes (Was: Command-line arguments)

Nick Sabalausky a at a.a
Fri Jul 4 21:33:49 PDT 2008


"superdan" <super at dan.org> wrote in message 
news:g4mmed$a2u$1 at digitalmars.com...
> Robert Fraser Wrote:
>
>> superdan wrote:
>> > narp. getopt is better for 2 reasons. first, if i want to have an 
>> > option with a dash in it, with getopt you say;
>> >
>> > bool showControlChars;
>> > getopt(args, "show-control-chars", &showControlChars);
>> >
>> > i and you and anyone who's used getopt once knows how to do that. but i 
>> > have no idea how to do that in c#. there may be some shitty attribute 
>> > to do so but i have to go check the manual. who wins?
>>
>> So, just to be clear, your argument is "I don't understand the C# way,
>> so getopt is better"?
>
> narp you are confused. there must be some option in the c# attributes that 
> tells how to do conversion from dashes to non-dashes. my point was that 
> that needs to be looked up whether or not you are versed in c# proper. 
> with std.getopt you don't need to look that up because the string is 
> distinct from the variable it binds to.
>

getopt has plenty of options that need to be looked up.

> nice try though. one attempt at irony missed, two to go.

Consider yourself extremely lucky any of us have been trying to help you 
after putting up with your attitude. I haven't seen one post from you that 
didn't include unproductive and clearly deliberate sarcasm or insults. I 
know this newsgroup operates on an "assume good faith" approach, but even 
that only goes so far. Keep it up and even the most laid-back people's 
patience will wear thin. If this were like most forums I've been on you 
would have already been banned by now for being generally disruptive.





More information about the Digitalmars-d mailing list