๐Ÿš€ go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.readers
Article #180627

The _Good_ aesthetics of macros.

#180627
From: Jeff_โ„želf
Date: Fri, 17 Feb 2006 22:23
31 lines
1982 bytes
Hi  Ghost_In_The_Machine,  You say your copy of X.CPP only has 1,321 lines ?
Mine has 2,077 and it's UTF-16 encoded, Cotse.NET/users/jeffrelf/X.CPP

Also, I think you'll find a lot more than 80 lines of macros.
Still, I do go way out of my way avoid them at _Certain_ times.
Here's a recent macro I wrote for another program:

  HWND Button_Windows [ 99 ];  //  99 is just an simple example.
  #define  CW  CreateWindowExW
  #define  CB  Button_Windows [ Total_Buttons ++ ] = CW ( 0, L"BUTTON",

It creates a button and is called like this:

  CB  "A Button Title", Flags, X, Y, Width, Hight
  , Parent_Window, ( HMENU ) 2, PID, 0 );

Does that blow your mind or what... ?

I wrote:

  Things like:  struct Some_Type { int X ; };  func( Some_Type & Buff ) { ... }  
  are a good way to avoid ugly -> operators and macros.

And you replied:  Don't like the 'pointto' operator, eh ?

Yes, I'm big on aesthetics like that.
Macros reduce the size of the source code 
and avoid having to look at ugly repetition, for example.


Technical Details
Message-ID: <Jeff_Relf_2006_Feb_17_cM10@Cotse.NET>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!i2pn2.pugleaf.net!archive.newsdeef.eu!mbox2nntp-sci.physics.(1199963).mbox.7z!not-for-mail
References: <Jeff_Relf_2006_Feb_16_KK6Y@Cotse.NET> <himec3-r2h.ln1@sirius.tg00suus7038.net> <Jeff_Relf_2006_Feb_16_nvkC@Cotse.NET> <r05fc3-5di.ln1@sirius.tg00suus7038.net> <Jeff_Relf_2006_Feb_16_e5gd@Cotse.NET> <0efhc3-n7f.ln1@sirius.tg00suus7038.net>

Show Full Headers
Complete Article Headers
Message-ID: <Jeff_Relf_2006_Feb_17_cM10@Cotse.NET>
Subject: The _Good_ aesthetics of macros.
Date: Fri, 17 Feb 2006 22:23:56 +0000
From: Jeff_โ„želf <Me@Privacy.NET>
References: <Jeff_Relf_2006_Feb_16_KK6Y@Cotse.NET> <himec3-r2h.ln1@sirius.tg00suus7038.net> <Jeff_Relf_2006_Feb_16_nvkC@Cotse.NET> <r05fc3-5di.ln1@sirius.tg00suus7038.net> <Jeff_Relf_2006_Feb_16_e5gd@Cotse.NET> <0efhc3-n7f.ln1@sirius.tg00suus7038.net>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!i2pn2.pugleaf.net!archive.newsdeef.eu!mbox2nntp-sci.physics.(1199963).mbox.7z!not-for-mail
Newsgroups: news.software.readers,sci.physics,comp.os.linux.advocacy
Lines: 29
Content-Type: text/plain; charset=UTF-8
X-Trace: individual.net JGLPgjMVtaXUT3s6cyEExQSj8b5KCciP9ehSTU3ytOhAheZkJU