On 03-Feb-2000 Michael Meskes wrote:
On Thu, Feb 03, 2000 at 03:58:02PM +0100, Lars Gullik Bjønnes wrote:
| + for (int i = 0; i datetmp_len; i++) {
In C++ it is adviced to use preincrement instead of postincrement:
Could anyone please enlighten me and tell me why preincrement is
Andre Poenitz [EMAIL PROTECTED] writes:
| Because sometimes it is necessary to create an extraneous copy of the
| iterator when using postincrements. This wastes resources.
|
| It's more or less the following:
|
| ++i:
|i = i + 1
|return i
|
| i++:
|temp = i
Juergen Vigna [EMAIL PROTECTED] writes:
| On 03-Feb-2000 Michael Meskes wrote:
| On Thu, Feb 03, 2000 at 03:58:02PM +0100, Lars Gullik Bjønnes wrote:
| | + for (int i = 0; i datetmp_len; i++) {
|
| In C++ it is adviced to use preincrement instead of postincrement:
|
| Could anyone
On 03-Feb-2000 Michael Meskes wrote:
> On Thu, Feb 03, 2000 at 03:58:02PM +0100, Lars Gullik Bjønnes wrote:
>> | + for (int i = 0; i < datetmp_len; i++) {
>>
>> In C++ it is adviced to use preincrement instead of postincrement:
>
> Could anyone please enlighten me and tell me why
Andre Poenitz <[EMAIL PROTECTED]> writes:
| Because sometimes it is necessary to create an extraneous copy of the
| iterator when using postincrements. This wastes resources.
|
| It's more or less the following:
|
| ++i:
|i = i + 1
|return i
|
| i++:
|temp =
Juergen Vigna <[EMAIL PROTECTED]> writes:
| On 03-Feb-2000 Michael Meskes wrote:
| > On Thu, Feb 03, 2000 at 03:58:02PM +0100, Lars Gullik Bjønnes wrote:
| >> | + for (int i = 0; i < datetmp_len; i++) {
| >>
| >> In C++ it is adviced to use preincrement instead of postincrement:
| >
| >
Juergen Vigna [EMAIL PROTECTED] writes:
| IDEA for setting locale on the document language:
| -
|
| We store the different babel-languages in tex-strings.C::tex_babel[].
| Would it be possible to instead of having only the name a structure like
On 03-Feb-2000 Lars Gullik Bjønnes wrote:
Juergen Vigna [EMAIL PROTECTED] writes:
| IDEA for setting locale on the document language:
| -
|
| We store the different babel-languages in tex-strings.C::tex_babel[].
| Would it be possible to
"John D. Blair" [EMAIL PROTECTED] writes:
A couple of _small_ comments on the code. Jurgen, you should read this
too.
| + // jdblair: experimental date-insert command
| + newFunc(LFUN_DATE_INSERT,"date-insert",
| + "", Noop);
^ I know that I have been lazy,
On 03-Feb-2000 Lars Gullik Bjønnes wrote:
Juergen Vigna [EMAIL PROTECTED] writes:
| This is a C way of doing it since C can't handle several locales at
| the same time. C++ and it wonderful Standard Library on the other hand
| does support this. And IMHO we should use the C++ locale
Juergen Vigna [EMAIL PROTECTED] writes:
| ??? I'm more confused then before (and I swear I didn't drink any alcohol
| yesterday AND today ;)
C cannot handle more than one locale at a time so you have to resort
to setting the locale in all functions that need it. C++ OTOH can have
several
On Thu, Feb 03, 2000 at 03:58:02PM +0100, Lars Gullik Bjønnes wrote:
[...]
| + for (int i = 0; i datetmp_len; i++) {
In C++ it is adviced to use preincrement instead of postincrement:
for (int i = 0; i datetmp_len; ++i) {
Forget my ignorance, I have read the Efective
On Thu, Feb 03, 2000 at 03:58:02PM +0100, Lars Gullik Bjønnes wrote:
| + for (int i = 0; i datetmp_len; i++) {
In C++ it is adviced to use preincrement instead of postincrement:
Could anyone please enlighten me and tell me why preincrement is preferred
over postincrement?
Michael
--
On Thu, Feb 03, 2000 at 03:58:02PM +0100, Lars Gullik Bjønnes wrote:
| + for (int i = 0; i datetmp_len; i++) {
In C++ it is adviced to use preincrement instead of postincrement:
Could anyone please enlighten me and tell me why preincrement is preferred
over postincrement?
Juergen Vigna <[EMAIL PROTECTED]> writes:
| IDEA for setting locale on the document language:
| -
|
| We store the different babel-languages in tex-strings.C::tex_babel[].
| Would it be possible to instead of having only the name a structure like
On 03-Feb-2000 Lars Gullik Bjønnes wrote:
> Juergen Vigna <[EMAIL PROTECTED]> writes:
>
>| IDEA for setting locale on the document language:
>| -
>|
>| We store the different babel-languages in tex-strings.C::tex_babel[].
>| Would it be possible
"John D. Blair" <[EMAIL PROTECTED]> writes:
A couple of _small_ comments on the code. Jurgen, you should read this
too.
| + // jdblair: experimental date-insert command
| + newFunc(LFUN_DATE_INSERT,"date-insert",
| + "", Noop);
^ I know that I have been
On 03-Feb-2000 Lars Gullik Bjønnes wrote:
> Juergen Vigna <[EMAIL PROTECTED]> writes:
>
>| > This is a C way of doing it since C can't handle several locales at
>| > the same time. C++ and it wonderful Standard Library on the other hand
>| > does support this. And IMHO we should use the C++
Juergen Vigna <[EMAIL PROTECTED]> writes:
| ??? I'm more confused then before (and I swear I didn't drink any alcohol
| yesterday AND today ;)
C cannot handle more than one locale at a time so you have to resort
to setting the locale in all functions that need it. C++ OTOH can have
several
On Thu, Feb 03, 2000 at 03:58:02PM +0100, Lars Gullik Bjønnes wrote:
[...]
>
> | + for (int i = 0; i < datetmp_len; i++) {
>
> In C++ it is adviced to use preincrement instead of postincrement:
>
> for (int i = 0; i < datetmp_len; ++i) {
>
Forget my ignorance, I have read the
On Thu, Feb 03, 2000 at 03:58:02PM +0100, Lars Gullik Bjønnes wrote:
> | + for (int i = 0; i < datetmp_len; i++) {
>
> In C++ it is adviced to use preincrement instead of postincrement:
Could anyone please enlighten me and tell me why preincrement is preferred
over postincrement?
Michael
>
> On Thu, Feb 03, 2000 at 03:58:02PM +0100, Lars Gullik Bjønnes wrote:
> > | + for (int i = 0; i < datetmp_len; i++) {
> >
> > In C++ it is adviced to use preincrement instead of postincrement:
>
> Could anyone please enlighten me and tell me why preincrement is preferred
> over
command:
date-insert. I wrote this b/c I'm currently co-authoring a book, and I
and my partner critique each other's work by writing margin notes into
the text. We enter the date at the top of each comment, which quickly
became tedious.
This new command accepts a strftime formatting string
On 01-Feb-2000 Andre Poenitz wrote:
Your editor is broken. It obviously failed to show you lines 26 and
27 when you worked on LyXAction.C :-)
Now I see it, my editor really had the function hide-file-comment-for-
how-to-know-to-do-things enabled so I didn't see that lines #:O)
PS:
Andre Poenitz wrote:
4. Changed the command from date-insert to insert-date (could someone tell
me if this is right I don't know in what direction the commands should be
and a look at LyXAction reveals that there are insert_xxx and xxx_insert
commands around, so what???)
to implement a simple new command:
> date-insert. I wrote this b/c I'm currently co-authoring a book, and I
> and my partner critique each other's work by writing margin notes into
> the text. We enter the date at the top of each comment, which quickly
> became tedious.
>
&
On 01-Feb-2000 Andre Poenitz wrote:
>
> Your editor is broken. It obviously failed to show you lines 26 and
> 27 when you worked on LyXAction.C :-)
Now I see it, my editor really had the function hide-file-comment-for-
how-to-know-to-do-things enabled so I didn't see that lines #:O)
> PS:
>
Andre Poenitz wrote:
>
> > 4. Changed the command from date-insert to insert-date (could someone tell
> >me if this is right I don't know in what direction the commands should be
> >and a look at LyXAction reveals that there are insert_xxx and xxx_insert
> >commands around, so
Hello,
Thanks much for all of your excellent work on LyX. I'm really happy
with what it can do now, and I'm looking forward to everything you're
still working on.
At any rate, I've attached a patch to implement a simple new command:
date-insert. I wrote this b/c I'm currently co-authoring
Hello,
Thanks much for all of your excellent work on LyX. I'm really happy
with what it can do now, and I'm looking forward to everything you're
still working on.
At any rate, I've attached a patch to implement a simple new command:
date-insert. I wrote this b/c I'm currently co-authoring
30 matches
Mail list logo