Hi Lorenzo,

I agree that .ini should use '=' as a value separator.
(it should also be case-insensitive by default, which
it's currently not.)

With some proper code though, both separators could be
allowed as long as only the first match gets handled
as a separator and the rest as data. Otherwise, such
data might also cause problems:

[main]
name=value=with=equal

This should return 'value=with=equal', currently it
will return 'value'.

I didn't test inline comments, but there should be some
ways to add values containing '#' (or '||') signs, for
example by ignoring any special chars when put inside
double quotes:

[main]
name="my value with a (#) hashmark"

[ In it's current form, .ini implementation is not up
to standard IMO. ]

Brgds,
Viktor


On 2008.05.12., at 13:05, Lorenzo Fiorini wrote:

hbini.prg has "=:|" as key, value default separators. This means that sth like:

[MAIN]
prog=c:\windows\edit.exe

by default returns only "c"

IMHO it's widely accepted that "=" is the only separator in ini files,
so I suggest to change the default to "=" only and left to the user to
add other separators ( it is a function parameter ).

Any opinion?

gest regards,
Lorenzo
_______________________________________________
Harbour mailing list
Harbour@harbour-project.org
http://lists.harbour-project.org/mailman/listinfo/harbour

_______________________________________________
Harbour mailing list
Harbour@harbour-project.org
http://lists.harbour-project.org/mailman/listinfo/harbour

Reply via email to