Programming Topics + CVu Journal Vol 11, #3 - Apr 1999
Browse in : All > Topics > Programming
All > Journals > CVu > 113
Any of these categories - All of these categories

Note: when you create a new publication type, the articles module will automatically use the templates user-display-[publicationtype].xt and user-summary-[publicationtype].xt. If those templates do not exist when you try to preview or display a new article, you'll get this warning :-) Please place your own templates in themes/yourtheme/modules/articles . The templates will get the extension .xt there.

Title: Being Silly?

Author: Administrator

Date: 03 April 1999 13:15:30 +01:00 or Sat, 03 April 1999 13:15:30 +01:00

Summary: 

Body: 

The following was in my HTML parsing code. Perhaps readers would like to see how quickly they can spot what's wrong.

ch=htmlGetc();
if (useOldCommentStyle && ch=='>') break;
else if (ch=='-' && htmlGetc()=='-') {
  do ch=htmlGetc(); while(ch=='-');
  if(ch=='>') break;
}

Moral: Watch your condition structure, and be careful of fingers-before-brain incremental development.

I will award a copy of Multi-Paradigm DESIGN for C++ to the first name drawn out of the box of those giving a correct answer and who is present at the AGM. I will also find some small award for every item I publish under this title though I will not publish names.

Notes: 

More fields may be available via dynamicdata ..