FLTK logo

Re: [fltk.coredev] Fluid documentation

FLTK matrix user chat room
(using Element browser app)   FLTK gitter user chat room   GitHub FLTK Project   FLTK News RSS Feed  
  FLTK Apps      FLTK Library      Forums      Links     Login 
 All Forums  |  Back to fltk.coredev  ]
 
Previous Message ]New Message | Reply ]Next Message ]

Re: Fluid documentation Greg Ercolano Dec 11, 2021  
 

On 12/11/21 5:53 AM, 'melcher....@googlemail.com' via fltk.coredev wrote:

You are right, bad example. A different one: If a Declaration node is inside a Class node, Fluid recognises the keywords class, struct, typedef, and FL_EXPORT at the start of the declaration and copies those declarations verbatim to the header file. Otherwise, Fluid will remove all but one spaces between the declaration and a potential inline comment ( `int x=1;       // test` will become `int x=1; // test`).

If anyone can explain that to, that would be quite helpful.


    I'm not looking at the code and not even familiar with it, but I'm guessing it tries
    to remove trailing spaces from the user's declaration code (thinking trailing white is an error),
    but tacks on a trailing space just to make sure comments don't "touch" the code statement,
    so as to avoid 'int x=1;// test'.

    I actually saw github's "diff" error-highlighted comments touching code recently, it was something like:

        void somefunc(int */*xyz*/, ..)

    ..I thought this an interesting trend, and even saw similar warnings from one of the newer
    compilers which warned about possibly confusing indenting..! Everything's getting very
    picky these days (which is probably a good thing). I personally never liked the idea of comments
    being too close to code, as it can be confused for a math formula or similar.

--
You received this message because you are subscribed to the Google Groups "fltk.coredev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to fltkcoredev+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/fltkcoredev/9c961b10-1e9a-c0b3-2cb3-83a325458419%40seriss.com.
Direct Link to Message ]
 
     
Previous Message ]New Message | Reply ]Next Message ]
 
 

Comments are owned by the poster. All other content is copyright 1998-2024 by Bill Spitzak and others. This project is hosted by The FLTK Team. Please report site problems to 'erco@seriss.com'.