| re: single-letter typecasting macros - where defined ?
Yes, thank you for pointing that out. It took me awhile to realize that
they are actully format specifiers much like in the old printf() function of
yore.
"Ken Alverson" <Ken@Alverson.net> wrote in message
news:uSLUuoMYDHA.652@TK2MSFTNGP10.phx.gbl...[color=blue]
> "jdm" <jdm1intx@DIE_SPAMBOT_DIEcharter.net> wrote in message
> news:vjdicuqn1hi38b@corp.supernews.com...[color=green]
> > In the sample code for the SortedList class, I see the use of a string
> > typecasting macro consisting of a single letter "S". i.e.:
> >
> > Sortedlist->Add(S"Keyval one", S"Item one");[/color]
>
> Do note that things like S"string", L"string", 3.14f, 0x100L, etc are[/color]
*not*[color=blue]
> typecasting. They are actually modifiers that affect the literal value[/color]
that[color=blue]
> gets used in your program. Typecasting, by contrast, is generally a[/color]
runtime[color=blue]
> operation that takes an existing value (possibly a literal) and converts[/color]
it[color=blue]
> into a different type.
>
> Ken
>
>[/color] |