🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

412 total messages Page 8 of 9 Started by Lawrence D’Oliveiro Sat, 10 Oct 2026 00:25
Page 8 of 9 • 412 total messages
Re: Taming The Switch-Statement
#647
Author: David Brown
Date: Wed, 21 Oct 2026 14:40
358 lines
15998 bytes
On 21/10/2026 13:29, bart wrote:
> On 21/10/2026 10:20, David Brown wrote:
>> On 20/10/2026 22:07, bart wrote:
>>> On 20/10/2026 16:02, David Brown wrote:
>>>> On 20/10/2026 16:11, bart wrote:
> 
>>>>> * A further complication was to allow function pointers within that a
>>>>>    declaration list
> 
>>>> To me, the big disadvantage of C's declaration syntax is that it 
>>>> lets you declare things of different (but related) types in the same 
>>>> declaration.
>>>
>>> Yes, but that doesn't bite so much because it is uncommon.
>>>
>>
>> Unfortunately not - but it is uncommon to mix objects and function 
>> declarations, or objects of wildly different real types.
> 
> That's what I meant.

Ok.  It's nice to agree sometimes!

> 
>>>      const int const * const p;
>>>        1         2       3
>>>
>>> const 1 applies to the basetype to its right.
>>> const 2 applies to the basetype to its left.
>>
>> These are redundant - they do the same thing.  (I'd have preferred if 
>> the ordering rules were strict - allowing only "const int" or "int 
>> const" - but at least people are usually consistent in their style.)
>>
>>>
>>> (Both also can be in the middle with compound types like 'long long'!)
>>>
>>> const 3 is tricky: I think it applies to the * to its left, since it 
>>> says that the pointer value itself is const. But 'p' has type 
>>> 'pointer to', so it could apply to that directly.
>>
>> Yes - it is "p" that is const,  not the "*".
> 
> I would disagree. This type can also be written as:
> 
>   (const int const * const)
> 
> There is no 'p' to apply to. The type describes a pointer to an integer. 
> The first two consts say, redundantly, that the integer value is const.
> 
> The third must then apply to the pointer.

Yes.  But "the pointer" is the thing you are declaring.

I don't think it is worth belabouring this.

> 
>>>
>>> What about this however:
>>>
>>>     int * const *  p;
>>>
>>>         1   2   3
>>>
>>> I think here, const 2 applies to * 1, which is to it's left, and 
>>> can't apply to 'p' as that is the other side of the * 3.
>>
>> *p is of type "int * const" - thus you can use "*p" to access a 
>> pointer- to-int, but you can't use *p to change that pointer-to-int.
> 
> But what exactly does this 'const' apply to?

The type of "*p" - the thing that "p" points to.

> 
> I'm suggesting any 'const' applies either to the base type (the one on 
> the left) or to a particular '*'.
> 
> In that case the latter 'const's must apply right-to-left to the 
> preceding '*'.

You can view it that way.

There is a style known as "east const" that aims to put "const" on the 
right where possible (thus "int const", rather than "const int"), so 
that it always applies to the thing immediately to its left.  I have 
never liked the style, but it is arguably more consistent.

> 
>>> Fair to say that is a complete mess, and it is error prone.
>>
>> No, it is not at all fair to say that.  It is fair to say that a 
>> different way of writing types might make it easier to understand - 
>> but that's a /long/ way from saying it is "a complete mess".  And you 
>> can't call it "error prone" unless you know that people regularly use 
>> such declarations, and often have bugs in their code as a result of 
>> doing so incorrectly.  I think that is an unrealistic claim.
> 
> If there's any confusion about which const applies to which type 
> element, then mistakes can be made.

Mistakes can always be made.  And mistakes can always be found, and 
fixed.  The questions are, are mistakes made often, are they made more 
often than they would be with a different syntax, are the mistakes left 
undiscovered, and are they consequential?  I don't think so - so I don't 
see the syntax as "error prone".

Again, I do not think the C declaration syntax is the nicest or clearest 
to be found, compared to some languages - but I do not think it is 
nearly as bad in practice as some people make out.

> 
>> You can write this in C++ :
>>
>>      // This bit is only needed once
>>      template <typename T> using ptr = T *;
>>
>>      // p is a pointer to a const pointer to an int
>>      ptr<const ptr<int>> p;
>>
>>
>> That's LTR syntax.  Sure, it also has < > parentheses, but that's a 
>> minor point since the ordering of the components is what apparently 
>> matters so much.
> 
> That it is LTR is now irrelevant because I find that incomprehensible 
> anyway. You've turned a linear chain a nested structure ... oh never 
> mind, I don't even want to go there with C++.

Your LTR form /is/ a nested structure - it's just that with this C++ 
format (which I have never seen anyone use in practice), the nesting is 
explicit.

>>
>> Or you can write :
>>
>>      typedef int * p_int;
>>      const p_int * p;
>>
>> Thus p is a pointer to a "const p_int", where a "p_int" is a pointer 
>> to an int.
> 
> So, a common pattern with you is to use workarounds so that you 
> effectively emulate LTR type patterns. Because they are easier to work 
> with and understand.

I'm offering you an alternative, because /you/ find the normal C syntax 
confusing.  /I/ would not write that, because I don't find the C syntax 
here confusing or difficult to read.  And mostly I would not write "int 
* const * p" because I have no idea when such a type might be useful. 
(If I knew, then maybe I would give it a specific name.)

> 
> So you do appreciate how they facilitate things, even though they 
> introduce an extra level of indirection and also disseminate the type 
> information across the program.

I appreciate that you are easily confused and have trouble with C 
syntax.  I recommend you do one of two things - stop worrying about 
imaginary types with no meaning, or learn to use typedef so that they 
are not so scary for you.

> 
> But you want to underplay how useful it would be to have natural LTR 
> type declarations within a syntax.
> 

I don't see LTR syntax as making a /significant/ or fundamental 
difference.  There will be a narrow range of complex types where the C 
syntax is getting hard to follow, but an LTR syntax is easier, but 
beyond that LTR is equally impenetrable.  The issue for complex types is 
not the syntax, it is the complexity of the type - and you handle that 
by breaking things down into manageable sections.

Let us put some numbers into this.  (To be clear - these numbers are 
pulled out of the air, and "real" values will depend on the reader, the 
context, the details of the real code, real alternative syntax, etc.) 
Let us say that C syntax is comprehensible with up to 4 parts - where a 
"part" is a "const", a "*", "[n]" - in addition to the base type.  With 
an LTR syntax, let us say it is comprehensible up to 5 parts.  Then 
there is no doubt - the LTR syntax /is/ clearer.  But does it actually 
matter, in practice?  Most declarations require no more than 3 parts - 
with the great majority clustered at 0 or 1 parts.  Who cares if it is 
difficult to read a type declaration you almost never need?  And then if 
you have something really complicated - 6 parts or more - it is equally 
incomprehensible with LTR and C syntax, and should be handled by 
divide-and-conquer just like anything complicated in programming.

This is why I can agree that the C syntax is not optimal, that an LTR 
syntax can be clearer, and yet it does not actually matter and the C 
syntax works fine in practice.


>> These are different ways to write the same type, including one that is 
>> LTR, and the main hinder to understanding remains the same - what is 
>> the type for?
> 
> If you create a type alias voluntarily (I don't mean structs where 
> either a tag or a typedef needs to be created) then yes the name should 
> impart something useful.
> 
> But in my view this is often taken too far. Sometimes you have structs 
> where every member has a different user-type. When you look further, you 
> find they are all ints. That is just obfuscation.

Every good thing can be taken too far - but there are lots of good 
reasons for having multiple typedefs that all coincidentally happen to 
boil down to "int".

> 
> (I would accept enumeration types if the compiler can employ that info 
> to improve type safety, but that seems to be limited.)

I agree that C enumeration types are not as "strong" as I'd like. 
Compiler static analysis can help in many ways, but it would be better 
(for me) if they were strongly typed and scoped.

> 
>>> I've showed even simple types or trying to use 'const' get becomes 
>>> confusing.
>>
>> No, you haven't.
> 
> OK. That is not surprising.
> 
>>> It would make a HUGE difference:
>>
>> Your points below are all true, but IMHO all very minor, and do not 
>> add up to anything much.
> 
> It would eliminate half the issues with C's type syntax. Probably CDECL 
> wouldn't need to exist. Lots of () disappear. It would make pointers-to- 
> arrays more viable.
> 
> But that's nothing in your view. OK again.

CDECL has never needed to exist.  So few () are needed in declarations 
that it doesn't matter if they are there or not.  Pointers to arrays 
work fine if you want to use them, but they are not often used in C - 
primarily because of the array-to-pointer decay in expressions, not 
because of the declaration syntax or the prefix dereferencing operator.

> 
>> Your invented confusion.
> 
> 
>> That doesn't matter in practice.
> 
>> I don't see that as significant.
>>
>> I do agree that the decay of expressions using array types into 
>> pointer types is a source of error in C code - though I do not think 
>> it is as bad as you do.
> 
> I didn't say anything about, and that wouldn't be affected.
> 

Ok.

> 
>> But I just don't see pointer-to-array expressions to be common enough 
>> for the difference you describe to be important.
> 
> 
> If you're passing arrays to a function by-reference then the natural way 
> is to a have a pointer to the array. C can do that, but nobody ever does 
> so, probably because indexing is then so ugly.
> 
> With my idea, (*A)[i] turns into A*[i], a bit less ugly.

Predictions are of course speculative, but I could not see that making 
noticeable difference.  C programmers rarely use pointers to arrays 
because they rarely give advantages over pointers to the first element 
of an array, the decay in expressions means it is easy to make mistakes, 
and you often need to make a pointer to the first element anyway.

If array expressions did not decay to pointer expressions, and array 
parameters were passed as values, it would be a very different matter.

> 
>>> (4) For pointers to structs, these are the patterns:
>>>
>>>      prefix *    With ->    With postfix *
>>>
>>>      (*P).m      P->m       P*.m
>>>      (**P).m     (*P)->m    P**.m
>>>      (***P).m    (**P)->m   P***.m
>>>
>>> Which column looks the tidiest?
>>
>> Far and away the most common - by orders of magnitude - are pointers 
>> to structs.  "p->m" looks fine to me, and I prefer it to "p*.m".
> 
> But where's the consistency? Sometimes "." is used for member selection, 
> and sometimes "->". And with two pointer levels, you need both!

The consistency is that you almost always have a pointer to a struct, so 
you can consistently use p->m.  There is no need to change that for 
consistency with a much rarer usage.  And of course "." is used for 
member selection when you have a struct object, or when you have already 
dereferenced a pointer to a struct.


>>> (6) Your 'int * a, b' example would become:
>>>
>>>    int a *, b;
>>>
>>> Much easier, even with that space, to see that '*' does not belong to 
>>> the base type but is a modifier for that variable.
>>
>> It's still bad.  I don't think finding a way to make it easier to 
>> write bad code is a good idea.
> 
> It wouldn't stay bad for long! Because if the intention was to declare 
> two pointers, then it's easier to see that this is wrong.

It is bad (according to my personal style preferences) if your 
intentionally declare an int and a pointer to an int in the same line. 
I am not talking about mistakes here - a mixup between an int and an 
int* will almost certainly result in a compilation failure and the code 
will quickly be fixed to give valid C code.

C lets you write "int *a, b;" - it is legal C.  There are lots of things 
you can write in C that I think are bad code, even though they may be 
intentional and work as intended.  (And even though others will, 
naturally, have different opinions.)

I would be against any change to C syntax that made it /easier/ for 
people to write such declarations - whether intentional or by mistake.

> 
>> So basically, the suggestion would change some very minor things - 
>> mostly in subjective ways - and not actually do anything for aspects 
>> of the language where there is more of a consensus that C is sub- 
>> optimal. And for this, you would want a fundamental change to one of 
>> the most used operators in all C code!
> 
> Obviously you can't change prefix * now. A postfix /alternative/, in 
> addition to prefix *, could have been introduced decades ago. So by the 
> time /you/ encountered C, you might have been using the latter.
> 

I first used C on a very small scale in the late 1980's, so that was 
quite a few decades ago.

I expect that a postfix dereferencing operator would have worked fine 
instead of a prefix one - it works fine in Pascal.  I don't think it 
would have been "better" in any significant way.  Two separate 
dereferencing operators with no difference except the prefix vs. postfix 
positioning would have been a very bad idea, no matter when it were 
introduced - it would have been a totally unnecessary complication, just 
adding confusion and inconsistency.

But even if you were right here, it is no more realistic to go back 4 
decades to add this new postfix dereferencing operator as it is to go 
back 5 decades and pick that one in the first place.

Re: Taming The Switch-Statement
#648
Author: bart
Date: Wed, 21 Oct 2026 14:41
74 lines
4828 bytes
On 21/10/2026 12:21, David Brown wrote:
> On 21/10/2026 03:04, bart wrote:

>> Here, one problem is that there are 3 types that I don't know and 
>> would have to look up.
> 
> Incorrect.

If I wanted to use function from a language that is not C and for which 
nobody has yet created a set of bindings, then I would have to 
investigate every single abstract type.

Even then, I might find that a year later, 'err_t' has been defined to 
be something slightly different. Standard types are easier to deal with 
and more likely to be stable.

>> That signed char return is unusual; why not 'int'? (How would you even 
>> print an 'err_t' value anyway)?
> 
> It seems that yet again, you need an explanation of fundamental points 
> of software development.  Today's lesson is on "abstraction".

OK. I've just looked at several graphics libraries. Those have chosen to 
use predominantly standard C types for function return values. And 
standard C types for numeric arguments.

Sometimes they might be prefixed, eg. GL_int, SDL_bool, probably as 
abstraction from the vagaries of standard C.

It seems a trend to invent pointless extra types for everything. In C 
itself, there are about 35 denotations for integer types, and that's 
before you get into clock_t, time_t, offset_t and everything else.

In general most boil down to one of i32 u32 i64 u64.

So you can go over the top with abstraction.

> Maybe on some targets (of this portable library), err_t is "signed 
> char".

Why not define it on top of 'int'? Is it likely that large numbers of 
error codes are going to be stored within structs and arrays so that the 
size must be minimal?

> It is also nice to know that it can be used in a switch, and cast to an 
> int for printf.

How would you know that? I thought it was abstract! Maybe err_t is a 
small struct.


> Or look at the "ip_addr_t" type.  It happens, at the moment, to be a 
> struct.  But it might have been a union.  The size and contents of the 
> struct depend on details of how the library is built - whether it has 
> support for ipv4, ipv6, or both.  Maybe a future version will also 
> support ipv8, or ipv5 (I've heard some people are trying to make an IP 
> protocol that covers more than IPv4, but without most of the 
> complicating additional features of IPv6).  It is an abstract type - you 
> use it without knowing the details.

I haven't said much about that. It is a struct so some username is 
needed. I renamed it to IP_addr in my example.

But I'm not sure it needs the _t suffix. (Is it a thing now for every 
typedef name to need _t?)

I notice however that the argument is a pointer: if ip_addr_t* values 
are commonly passed around, I would put an abstraction around that.

(However that's partly because how my language works is different; to 
access a member of the struct, I don't need to know if the type of X is 
an actual struct or is a pointer to one; I write X.addr in both cases.)

Re: Taming The Switch-Statement
#650
Author: David Brown
Date: Wed, 21 Oct 2026 15:29
146 lines
7488 bytes
On 21/10/2026 15:22, Dan Cross wrote:
> In article <11baah2$3te3v$1@dont-email.me>,
> David Brown  <david.brown@hesbynett.no> wrote:
>> On 20/10/2026 21:24, Dan Cross wrote:
>>> In article <11b7k22$2v8e5$1@dont-email.me>, bart  <bc@freeuk.com> wrote:
>>>> [snip]
>>>> (There was a LOT of antipathy towards my idea to fix the common case of
>>>> 'loop-break' clashing with 'switch-break', BECAUSE it did not fix the
>>>> problem of nested loop-break, which is uncommon, even though that wasn't
>>>> the aim.)
>>>
>>> Those are two different things.  No one disagrees with you that
>>> "nested break from a switch inside of a loop" is relatively more
>>> common than other variants.
>>
>> Quibble - that is not established to my satisfaction.  I am not
>> convinced that wanting a nested break for "switch inside loop" is more
>> common than wanting it for "loop inside loop".  So I neither agree nor
>> disagree with that claim.  I don't, however, think it matters much -
>> both are situations that turn up sometimes in code, and definitive
>> answers are neither possible nor useful.
> 
> Ok, that's fair; I shouldn't say "no one disagrees".

And I didn't say I /did/ disagree - merely that I don't feel I have the 
information to disagree or agree.

We all over-generalise, and that's always bad!

> 
>>> [snip]
>>> There are plenty of languages that can do this kind of thing
>>> that are not C and have syntax and semantics closer to what you
>>> seem to want.  Here's an example in Rust:
>>>
>>> pub trait TimerHandle { ... }
>>>
>>> fn CreateTimer<T>(
>>>       timer_name: &str,
>>>       period: std::time::Duration,
>>>       auto_reload: bool,
>>>       timer_id: T,
>>>       handler: fn(&dyn TimerHandle),
>>> ) -> Result<Timer<T>, TimerError>
>>>
>>> I didn't know what an `UBaseType_t` is, and while "autoreload"
>>> sounded pretty intuitive, I wasn't sure about the semantics, so
>>> I looked it up (the example comes from `FreeRTOS`).  In this
>>> context, it is a boolean saying whether the timer should repeat
>>> with the given periodicity, or whether it is a one-shot.
>>
>> FreeRTOS is written in C90 - a mistake, IMHO - and thus does not use
>> bool.  Instead, it uses constants pdTRUE and pdFALSE of type
>> UBaseType_t.  UBaseType_t is a type that is dependent on the target -
>> usually it is either 16-bit or 32-bit.  But of course it doesn't matter
>> what the underlying types are - you use the typedef names, and the
>> documented constants.
> 
> Thanks for the context.  Your point that the underlying type
> doesn't matter is salient: it's opaque to the programmer, but
> 99% of the time the programmer doesn't need to worry about the
> details.

Yes.

> 
>>> The timer_id is opaque to the timer, and it looks like it's used
>>> to facilitating the handler accessing timer-specific data.  In
>>> C, passing it as a `void *` is used as a way to get a poor-man's
>>> overloading.  But Rust has generics, I just made it generic over
>>> some type T.
>>
>> FreeRTOS uses "void *" to mean "pointer to internal structure that you
>> shouldn't be messing with".  It uses this far too often, and is, IMHO, a
>> poor design choice.  (I also dislike the silly Hungarian naming.)  I
>> would much preferred if there had been :
>>
>> 	struct Internal_Timer_Struct;
>> 	typedef struct Internal_Timer_Struct * timer_id_t;
>>
>> and then the parameter "timer_id_t timer_id".  So in a re-write, it
>> would not be a generic.  (You might choose to use a generic for the
>> handler function type, so that handler callbacks could have parameters
>> of other types, but not for the timer id.)
>>
>> I am using these declarations from FreeRTOS (and LWIP) to demonstrate
>> the use of function typedefs in massively popular codebases, not to
>> claim FreeRTOS is a paradigm of C code design!
> 
> Oh interesting; in this case, I had assumed it was treated as
> a callback-specific type so one could plumb extra context into
> the handler; the documentation I saw suggested it could be used
> by the handler to disambiguate several timers reusing the same
> handler function.

Actually, I have mixed these up, and you are correct - the void* id is 
user-assigned, and you use it as you wish.  There are other places in 
FreeRTOS where pointer types get "erased" and reduced to void* 
unnecessarily, but this was not one of them.  (In my poor defence, the 
FreeRTOS code I have doesn't use timers, and the bits it does use - 
threads and queues, mainly - is abstracted to a C++ interface.)

> 
>>>   For example:
>>>
>>> [snip]
>>>
>>> Note this is decently complex behavior, but it's actually quite
>>> intuitive from the name and the type.
>>
>> You have got a very clear picture here, much of it from the names of the
>> types.  For a Rust programmer, you give a good impression of experience
>> with C :-)
> 
> I've been known to dabble.
> 
>> The only mistake you made is that programmers working on systems using
>> FreeRTOS and the like, have a fear and loathing of "malloc", have never
>> heard of "abort()", and do not join our threads because they all run
>> until the power is switched off.
> 
> Ha, fair; that was just a made-up example, based on other thread
> libraries I have used (in C).  I didn't mean for it to be
> interpreted strictly in the context of FreeRTOS! :-D
> 
>> [snip]
>>
>> Or just have :
>>
>> 	fnptr pc = first;
>> 	fnptr *pcptr = &pc;
>> 	
>> I don't see a need for "uintptr_t", except so that you have to have
>> casts like Bart had.
> 
> Yes.  But I wanted to remain faithful to his original, to show
> that one could write a more-or-less exact transliteration in C
> that was extremely similar to his chosen syntax.
> 
>>> [Snip a bunch of Rust code; the point of which being that
>>>   bart need not complain about lack of an alternative to C]
> 

It was interesting to see the Rust code, but it made one thing clear to 
me - Rust should be used for writing Rust code, and not for writing C 
code in Rust syntax.
Re: Taming The Switch-Statement
#651
Author: David Brown
Date: Wed, 21 Oct 2026 15:36
32 lines
3098 bytes
On 21/10/2026 16:41, bart wrote:
> On 21/10/2026 12:21, David Brown wrote:
>> On 21/10/2026 03:04, bart wrote:
> 
>>> Here, one problem is that there are 3 types that I don't know and 
>>> would have to look up.
>>
>> Incorrect.
> 
> If I wanted to use function from a language that is not C and for which 
> nobody has yet created a set of bindings, then I would have to 
> investigate every single abstract type.

So for a one-in-a-million use-cases, you would have to look up the type, 
such as by holding your mouse over the type, or pressing the "navigate 
to definition" shortcut in your IDE.  I think it is better to optimise 
for the 999,999 other cases.

Or you could use a real programming language, for which there is 
probably SWIG support.

> 
> Even then, I might find that a year later, 'err_t' has been defined to 
> be something slightly different. Standard types are easier to deal with 
> and more likely to be stable.

Libraries change types for good reasons.  Support for one person using 
an obscure language who does not want to have to look up a typedef is 
not going to influence that decision.  The world does not revolve around 
you and your unique needs and wants.

Re: Taming The Switch-Statement
#652
Author: Dan Cross
Date: Wed, 21 Oct 2026 15:37
117 lines
5739 bytes
In article <11baiuc$11ac$1@dont-email.me>, bart  <bc@freeuk.com> wrote:
>On 21/10/2026 12:21, David Brown wrote:
>> On 21/10/2026 03:04, bart wrote:
>>> Here, one problem is that there are 3 types that I don't know and 
>>> would have to look up.
>> 
>> Incorrect.
>
>If I wanted to use function from a language that is not C and for which 
>nobody has yet created a set of bindings, then I would have to 
>investigate every single abstract type.

That is true of every programming language.

>Even then, I might find that a year later, 'err_t' has been defined to 
>be something slightly different. Standard types are easier to deal with 
>and more likely to be stable.

That is also true of every programming language.

You can write some library in BartM or whatever language you
like, and someone might write a binding to call it from, say,
Pascal; and then a year down the road, you might change your
compiler (since I gather you don't bother with a well-defined
ABI, based on your not seeming to understand them) or change
the type of something in a record, and you don't tell the Pascal
person; now, they've got a program that will probably link
against your library, and may even work correctly _most of the
time_, but sometimes will just mysteriously crash.

Welcome to programming.  It's Hard(TM).

Your answer to that appears to be to simply give up on
abstraction; others work around it by writing tools (cf, `swig`
or `bindgen` for Rust).

>>> That signed char return is unusual; why not 'int'? (How would you even 
>>> print an 'err_t' value anyway)?
>> 
>> It seems that yet again, you need an explanation of fundamental points 
>> of software development.  Today's lesson is on "abstraction".
>
>OK. I've just looked at several graphics libraries. Those have chosen to 
>use predominantly standard C types for function return values. And 
>standard C types for numeric arguments.
>
>Sometimes they might be prefixed, eg. GL_int, SDL_bool, probably as 
>abstraction from the vagaries of standard C.
>
>It seems a trend to invent pointless extra types for everything. In C 
>itself, there are about 35 denotations for integer types, and that's 
>before you get into clock_t, time_t, offset_t and everything else.
>
>In general most boil down to one of i32 u32 i64 u64.

Judicious use of types can render entire categories of errors
unexpressible.  Alexis King wrote a wonderful post about this,
expressed using Haskell, but the general principles apply more
broadly.

https://lexi-lambda.github.io/blog/2019/11/05/parse-don-t-validate/

>So you can go over the top with abstraction.

Of course.  Part of becoming a true software engineer is
learning to find balance between too much abstraction and too
little.

>> Maybe on some targets (of this portable library), err_t is "signed 
>> char".
>
>Why not define it on top of 'int'? Is it likely that large numbers of 
>error codes are going to be stored within structs and arrays so that the 
>size must be minimal?

Because maybe on some platforms it's more efficient to keep it
in a `signed char`.  Who knows?  The point is you almost never
need to care.

>> It is also nice to know that it can be used in a switch, and cast to an 
>> int for printf.
>
>How would you know that? I thought it was abstract! Maybe err_t is a 
>small struct.

Because the documentation about it tells you that you can: "The
type `err_t` is used to represent errors.  It can be cast to
`int`."  Really, this is table-stakes software development.

>> Or look at the "ip_addr_t" type.  It happens, at the moment, to be a 
>> struct.  But it might have been a union.  The size and contents of the 
>> struct depend on details of how the library is built - whether it has 
>> support for ipv4, ipv6, or both.  Maybe a future version will also 
>> support ipv8, or ipv5 (I've heard some people are trying to make an IP 
>> protocol that covers more than IPv4, but without most of the 
>> complicating additional features of IPv6).  It is an abstract type - you 
>> use it without knowing the details.
>
>I haven't said much about that. It is a struct so some username is 
>needed. I renamed it to IP_addr in my example.

Huh?  Username?

>But I'm not sure it needs the _t suffix. (Is it a thing now for every 
>typedef name to need _t?)
>
>I notice however that the argument is a pointer: if ip_addr_t* values 
>are commonly passed around, I would put an abstraction around that.
>
>(However that's partly because how my language works is different; to 
>access a member of the struct, I don't need to know if the type of X is 
>an actual struct or is a pointer to one; I write X.addr in both cases.)

So does Rust.  You're welcome.

	- Dan C.
Re: Taming The Switch-Statement
#653
Author: bart
Date: Wed, 21 Oct 2026 16:22
82 lines
4535 bytes
On 21/10/2026 16:37, Dan Cross wrote:
> In article <11baiuc$11ac$1@dont-email.me>, bart  <bc@freeuk.com> wrote:
>> On 21/10/2026 12:21, David Brown wrote:
>>> On 21/10/2026 03:04, bart wrote:
>>>> Here, one problem is that there are 3 types that I don't know and
>>>> would have to look up.
>>>
>>> Incorrect.
>>
>> If I wanted to use function from a language that is not C and for which
>> nobody has yet created a set of bindings, then I would have to
>> investigate every single abstract type.
> 
> That is true of every programming language.

It's not clear what you mean by 'that'.

But typically APIs are primarily expressed as C headers. With mainstream 
languages, somebody else has usually already done that work.


>> Even then, I might find that a year later, 'err_t' has been defined to
>> be something slightly different. Standard types are easier to deal with
>> and more likely to be stable.
> 
> That is also true of every programming language.

Then it is also true that standard types will be more stable.

> You can write some library in BartM or whatever language you
> like, and someone might write a binding to call it from, say,
> Pascal; and then a year down the road, you might change your
> compiler (since I gather you don't bother with a well-defined
> ABI, based on your not seeming to understand them

You still don't get what an ABI is.

> Welcome to programming.  It's Hard(TM).

Some things could be easier. Someone produces library (eg. DLL binary).

That library exports a set of function names, but not a set of 
language-neutral function signatures. (And it will not export types, 
structs, enums etc needed to use the library.)

Why not do that? Just a DLL having the C header API embedded within it 
would be a start! You don't need to source them separately, and they 
will always match in version.

>> In general most boil down to one of i32 u32 i64 u64.

> Judicious use of types can render entire categories of errors
> unexpressible.  Alexis King wrote a wonderful post about this,
> expressed using Haskell, but the general principles apply more
> broadly.

If you want to use lots of abstraction then use a language with strict 
type systems that can back them up. Ada for example.

But it's not a language I'd want to use. You can go too far down that 
path (look at the Frink programming language).


>>> It is also nice to know that it can be used in a switch, and cast to an
>>> int for printf.
>>
>> How would you know that? I thought it was abstract! Maybe err_t is a
>> small struct.
> 
> Because the documentation about it tells you that you can: "The
> type `err_t` is used to represent errors.  It can be cast to
> `int`."  Really, this is table-stakes software development.

In this case it doesn't. It is an alias for 's8_t', which is itself an 
alias for 'int8_t' (which itself is probably an alias for 'signed char' 
within 'stdint.h'.

What it does say however is that, if you define a certain macro, you can 
make err_t' any type you like. I don't know how that would work here; I 
assume it still has to be a numeric type, but it is not stated.

Re: Taming The Switch-Statement
#654
Author: Scott Lurndal
Date: Wed, 21 Oct 2026 17:21
13 lines
1464 bytes
bart <bc@freeuk.com> writes:
>On 21/10/2026 16:37, Dan Cross wrote:

>> You can write some library in BartM or whatever language you
>> like, and someone might write a binding to call it from, say,
>> Pascal; and then a year down the road, you might change your
>> compiler (since I gather you don't bother with a well-defined
>> ABI, based on your not seeming to understand 
>
>You still don't get what an ABI is.

Please, enlighten us.  Be specific.  What exactly
does the term ABI mean to you?
Re: Taming The Switch-Statement
#655
Author: bart
Date: Wed, 21 Oct 2026 18:04
70 lines
3922 bytes
On 21/10/2026 18:21, Scott Lurndal wrote:
> bart <bc@freeuk.com> writes:
>> On 21/10/2026 16:37, Dan Cross wrote:
> 
>>> You can write some library in BartM or whatever language you
>>> like, and someone might write a binding to call it from, say,
>>> Pascal; and then a year down the road, you might change your
>>> compiler (since I gather you don't bother with a well-defined
>>> ABI, based on your not seeming to understand
>>
>> You still don't get what an ABI is.
> 
> Please, enlighten us.  Be specific.  What exactly
> does the term ABI mean to you?

It's what I have to deal with in a compiler back-end if I want to 
support an FFI in a language.

It's not the same problem as using that FFI to write a set of bindings 
corresponding with a particular API.

The latter problem needs to be solved even if there was no back-end and 
no ABI to deal with (eg. transpiling to another language, or lowering to 
some VM).

I don't why I'm bothering, since somebody will find another stick to 
beat me over the head with or to somehow try to catch me out, but here 
is an example of a function inside MSVCRT.DLL..

In the C API (ie. stdio.h) it will be expressed like this:

     int puts(const char*);

In my FFI and in my syntax, it is expressed like this:

     func puts       (ichar)i32

So, this is 'creating a binding'. This can be done manually for this 
one-off example. It's not perfect: on my platform, the C parameter has 
'ref i8' type, but mine is more like 'ref u8'.

At this point, the ABI doesn't come into it.

That becomes relevant within the backend for a particular target and 
platform.

So for this call:

    puts(s)

the ABI for x64 running Windows will tell me that 's' must be passed in 
rcx, the stack needs a shadow space, it needs to be 16-byte aligned, and 
the 32-bit result is placed in eax.

For ARM64 running Linux (SYS V), then 's' is passed in x0, and the 
result placed in w0. The stack will always properly aligned.

The only overlap in API/ABI may be to do with details of how structs may 
be laid out in memory. But generally, C APIs will just follow the C 
rules; I don't consider it an ABI thing. It would be something to deal 
with even if no ABI existed and no native code was generated.

For my purposes, ABI is about calling conventions. ABI references may 
cover a lot more (eg. for SYS V which likes to make everything as 
complicated as possible).

So, now tell me what I've got wrong.


Re: Taming The Switch-Statement
#656
Author: Dan Cross
Date: Wed, 21 Oct 2026 18:38
76 lines
3796 bytes
In article <11baur1$63id$1@dont-email.me>, bart  <bc@freeuk.com> wrote:
>On 21/10/2026 18:21, Scott Lurndal wrote:
>> bart <bc@freeuk.com> writes:
>>> On 21/10/2026 16:37, Dan Cross wrote:
>> 
>>>> You can write some library in BartM or whatever language you
>>>> like, and someone might write a binding to call it from, say,
>>>> Pascal; and then a year down the road, you might change your
>>>> compiler (since I gather you don't bother with a well-defined
>>>> ABI, based on your not seeming to understand
>>>
>>> You still don't get what an ABI is.
>> 
>> Please, enlighten us.  Be specific.  What exactly
>> does the term ABI mean to you?
>
>It's what I have to deal with in a compiler back-end if I want to 
>support an FFI in a language.
>
>It's not the same problem as using that FFI to write a set of bindings 
>corresponding with a particular API.
>
>The latter problem needs to be solved even if there was no back-end and 
>no ABI to deal with (eg. transpiling to another language, or lowering to 
>some VM).
>
>I don't why I'm bothering, since somebody will find another stick to 
>beat me over the head with or to somehow try to catch me out, but here 
>is an example of a function inside MSVCRT.DLL..
>
>In the C API (ie. stdio.h) it will be expressed like this:
>
>     int puts(const char*);
>
>In my FFI and in my syntax, it is expressed like this:
>
>     func puts       (ichar)i32
>
>So, this is 'creating a binding'. This can be done manually for this 
>one-off example. It's not perfect: on my platform, the C parameter has 
>'ref i8' type, but mine is more like 'ref u8'.
>
>At this point, the ABI doesn't come into it.
>
>That becomes relevant within the backend for a particular target and 
>platform.
>
>So for this call:
>
>    puts(s)
>
>the ABI for x64 running Windows will tell me that 's' must be passed in 
>rcx, the stack needs a shadow space, it needs to be 16-byte aligned, and 
>the 32-bit result is placed in eax.
>
>For ARM64 running Linux (SYS V), then 's' is passed in x0, and the 
>result placed in w0. The stack will always properly aligned.
>
>The only overlap in API/ABI may be to do with details of how structs may 
>be laid out in memory. But generally, C APIs will just follow the C 
>rules; I don't consider it an ABI thing. It would be something to deal 
>with even if no ABI existed and no native code was generated.
>
>For my purposes, ABI is about calling conventions. ABI references may 
>cover a lot more (eg. for SYS V which likes to make everything as 
>complicated as possible).
>
>So, now tell me what I've got wrong.

Wow.  You really, truly, have no idea how any of this works.  I
don't even know where to begin.  You just throw around words but
have no idea what they mean in context.

It's breathtaking, really.

	- Dan C.
Re: Taming The Switch-Statement
#657
Author: Dan Cross
Date: Wed, 21 Oct 2026 18:43
27 lines
2117 bytes
In article <11balos$1042$2@dont-email.me>,
David Brown  <david.brown@hesbynett.no> wrote:
>On 21/10/2026 15:22, Dan Cross wrote:
>[snip]
>Actually, I have mixed these up, and you are correct - the void* id is 
>user-assigned, and you use it as you wish.  There are other places in 
>FreeRTOS where pointer types get "erased" and reduced to void* 
>unnecessarily, but this was not one of them.  (In my poor defence, the 
>FreeRTOS code I have doesn't use timers, and the bits it does use - 
>threads and queues, mainly - is abstracted to a C++ interface.)

No problem!

>It was interesting to see the Rust code, but it made one thing clear to 
>me - Rust should be used for writing Rust code, and not for writing C 
>code in Rust syntax.

Yes.  When we started working with Rust, most of us had a lot of
experience in C, C++, etc, and we brought a lot of inherited bad
habits to our Rust code.  At one point, a colleague quipped that
we were writing, "crust: C in Rust syntax!"  We all thought that
was a great play on words, and adopted it in self-deprecating
terms.  Some people get pretty insulted by it, but it was never
intended that way.

	- Dan C.
Re: Taming The Switch-Statement
#658
Author: Dan Cross
Date: Wed, 21 Oct 2026 18:56
17 lines
1646 bytes
In article <11baot1$3j98$1@dont-email.me>, bart  <bc@freeuk.com> wrote:
>[snip]
>You still don't get what an ABI is.

This is the only interesting thing in your post, and only
because it offers a key insight into your screeds: you use terms
in a way that matches your own sense of what they mean,
regardless of how they are used in the wider context.  This is a
good example: later, you said that ABIs are _only_ about calling
conventions.  For you, I'm sure that is true; for others who
work in the field and use the consensus definitions, it is
uninformed nonsense.  No wonder you feel so attacked; what you
believe you are saying is competely divorced from the way people
read it.

	- Dan C.
Re: Taming The Switch-Statement
#659
Author: Scott Lurndal
Date: Wed, 21 Oct 2026 19:17
41 lines
2632 bytes
bart <bc@freeuk.com> writes:
>On 21/10/2026 18:21, Scott Lurndal wrote:
>> bart <bc@freeuk.com> writes:
>>> On 21/10/2026 16:37, Dan Cross wrote:
>> 
>>>> You can write some library in BartM or whatever language you
>>>> like, and someone might write a binding to call it from, say,
>>>> Pascal; and then a year down the road, you might change your
>>>> compiler (since I gather you don't bother with a well-defined
>>>> ABI, based on your not seeming to understand
>>>
>>> You still don't get what an ABI is.
>> 
>> Please, enlighten us.  Be specific.  What exactly
>> does the term ABI mean to you?
>
>It's what I have to deal with in a compiler back-end if I want to 
>support an FFI in a language.

Ah, so you don't know what an ABI is.

   An Application Binary Interface (ABI) is a
   low-level contract in computer science that
   defines how two compiled binary program modules
   interact with each other at the machine-code level.

<snip discussions of the well known ABI requirements for
 windows x86_64 and linux on ARM64>[*]

If you want your compiler to leverage existing libraries
and/or code written in another language, you need to follow
the platform ABI.  It is that simple.

Whether you like it or not, is completely irrelevent.

[*] It is worth noting that the Windows x86 64-bit ABI
requirement for the caller to reserve space for the
callee to save registers (shadow store) is quite
unusual in modern ABIs.

The stack pointer alignment requirement should be obvious.
Re: Taming The Switch-Statement
#660
Author: bart
Date: Wed, 21 Oct 2026 19:36
25 lines
2224 bytes
On 21/10/2026 19:38, Dan Cross wrote:
> In article <11baur1$63id$1@dont-email.me>, bart  <bc@freeuk.com> wrote:

>> So, now tell me what I've got wrong.
> 
> Wow.  You really, truly, have no idea how any of this works.  I
> don't even know where to begin.  You just throw around words but
> have no idea what they mean in context.
> 
> It's breathtaking, really.
And Wow, your reply is exactly the kind I expected!

Of course, you're not going to tell me what API means versus ABI, and 
you're not going to answer my question about what I've got wrong.

Because actually you don't know. This was apparent from things you've 
said in the past.

I have actually wondered what you're doing here, and this appears to be 
it: being hostile, patronising, condescending and constantly taking the 
contrary view no matter what.

In other words, being a troll.

Re: Taming The Switch-Statement
#662
Author: bart
Date: Wed, 21 Oct 2026 19:49
57 lines
3565 bytes
On 21/10/2026 20:17, Scott Lurndal wrote:
> bart <bc@freeuk.com> writes:
>> On 21/10/2026 18:21, Scott Lurndal wrote:
>>> bart <bc@freeuk.com> writes:
>>>> On 21/10/2026 16:37, Dan Cross wrote:
>>>
>>>>> You can write some library in BartM or whatever language you
>>>>> like, and someone might write a binding to call it from, say,
>>>>> Pascal; and then a year down the road, you might change your
>>>>> compiler (since I gather you don't bother with a well-defined
>>>>> ABI, based on your not seeming to understand
>>>>
>>>> You still don't get what an ABI is.
>>>
>>> Please, enlighten us.  Be specific.  What exactly
>>> does the term ABI mean to you?
>>
>> It's what I have to deal with in a compiler back-end if I want to
>> support an FFI in a language.
> 
> Ah, so you don't know what an ABI is.
> 
>     An Application Binary Interface (ABI) is a
>     low-level contract in computer science that
>     defines how two compiled binary program modules
>     interact with each other at the machine-code level.

OK. And how is my statement wrong?

> If you want your compiler to leverage existing libraries
> and/or code written in another language, you need to follow
> the platform ABI.  It is that simple.

OK. And what have I said that contradicts that? I said it is something 
taken care of in the back end of my compiler; and it is a solved problem.

It sends very much like both of you are confused about the difference 
between API and ABI!

> Whether you like it or not, is completely irrelevent.

Irrelevant to ... what? You're making about as much sense as the other chap.

I was describing the problems of interfacing to APIs  (with a 'P') and 
DC spouted some stuff about ABIs, which was not relevant to those problems.

So, are you agreeing with me here that API issues and ABI issues are 
separate matters?

> The stack pointer alignment requirement should be obvious.

Not really: the ABI has to explicitly state it.

In any case that is not relevant to the issues I was describing in 
working with APIs.

Re: Taming The Switch-Statement
#663
Author: Chris M. Thomasson
Date: Wed, 21 Oct 2026 20:02
4 lines
1495 bytes
On 10/21/2026 5:17 AM, David Brown wrote:
[...]

*_t intrudes into POSIX.
Re: Taming The Switch-Statement
#664
Author: Dan Cross
Date: Wed, 21 Oct 2026 20:36
42 lines
2375 bytes
In article <11bb47i$889c$1@dont-email.me>, bart  <bc@freeuk.com> wrote:
>On 21/10/2026 19:38, Dan Cross wrote:
>> In article <11baur1$63id$1@dont-email.me>, bart  <bc@freeuk.com> wrote:
>
>>> So, now tell me what I've got wrong.
>> 
>> Wow.  You really, truly, have no idea how any of this works.  I
>> don't even know where to begin.  You just throw around words but
>> have no idea what they mean in context.
>> 
>> It's breathtaking, really.
>
>And Wow, your reply is exactly the kind I expected!
>
>Of course, you're not going to tell me what API means versus ABI, and 
>you're not going to answer my question about what I've got wrong.

Honestly?  No, I'm not.  It's clear that if I tried, you would
either not understand, or deliberately ignore it so you could
blindly continue in your self-imposed ignorance.

>Because actually you don't know.

Umm.....

>This was apparent from things you've said in the past.

You know, it's one thing to be ignorant yourself.  It's quite
another to project that onto others.

>I have actually wondered what you're doing here, and this appears to be 
>it: being hostile, patronising, condescending and constantly taking the 
>contrary view no matter what.
>
>In other words, being a troll.

It's apparent that you really, truly, do not understand why so
many others seem like they are "having a go" at you.  I actually
feel kind of bad for you.

	- Dan C.
Re: Taming The Switch-Statement
#665
Author: bart
Date: Wed, 21 Oct 2026 22:10
63 lines
3581 bytes
On 21/10/2026 21:36, Dan Cross wrote:
> In article <11bb47i$889c$1@dont-email.me>, bart  <bc@freeuk.com> wrote:
>> On 21/10/2026 19:38, Dan Cross wrote:
>>> In article <11baur1$63id$1@dont-email.me>, bart  <bc@freeuk.com> wrote:
>>
>>>> So, now tell me what I've got wrong.
>>>
>>> Wow.  You really, truly, have no idea how any of this works.  I
>>> don't even know where to begin.  You just throw around words but
>>> have no idea what they mean in context.
>>>
>>> It's breathtaking, really.
>>
>> And Wow, your reply is exactly the kind I expected!
>>
>> Of course, you're not going to tell me what API means versus ABI, and
>> you're not going to answer my question about what I've got wrong.
> 
> Honestly?  No, I'm not.  It's clear that if I tried, you would
> either not understand, or deliberately ignore it so you could
> blindly continue in your self-imposed ignorance.
> 
>> Because actually you don't know.
> 
> Umm.....
> 
>> This was apparent from things you've said in the past.
> 
> You know, it's one thing to be ignorant yourself.  It's quite
> another to project that onto others.

I've seen zero evidence that you know anything about the matter. Just 
bluster.


> 
>> I have actually wondered what you're doing here, and this appears to be
>> it: being hostile, patronising, condescending and constantly taking the
>> contrary view no matter what.
>>
>> In other words, being a troll.
> 
> It's apparent that you really, truly, do not understand why so
> many others seem like they are "having a go" at you.  I actually
> feel kind of bad for you.


If you don't know this stuff, that would be perfectly fine, not everyone 
is into compilers.

But refusing to admit that you mixed up API/ABI and instead gaslighting 
others into thinking they're the ones in the wrong is unacceptable and 
childish.

I've looked at the 40 or so posts you've made in the last few days, half 
of them were replies to me, all unpleasant exchanges.

This is just persecution, constantly attacking and belittling at the 
personal level. Maybe you're some sick fuck and and you get a kick out 
of it, then you should get help together with JP, that other wonderful 
person.

Re: Taming The Switch-Statement
#666
Author: Dan Cross
Date: Wed, 21 Oct 2026 22:55
40 lines
2363 bytes
In article <11bbd8k$bhfq$1@dont-email.me>, bart  <bc@freeuk.com> wrote:
>On 21/10/2026 21:36, Dan Cross wrote:
>> In article <11bb47i$889c$1@dont-email.me>, bart  <bc@freeuk.com> wrote:
>>> On 21/10/2026 19:38, Dan Cross wrote:
>>>> In article <11baur1$63id$1@dont-email.me>, bart  <bc@freeuk.com> wrote:
>>>
>>>>> So, now tell me what I've got wrong.
>>>>
>>>> Wow.  You really, truly, have no idea how any of this works.  I
>>>> don't even know where to begin.  You just throw around words but
>>>> have no idea what they mean in context.
>>>>
>>>> It's breathtaking, really.
>>>
>>> And Wow, your reply is exactly the kind I expected!
>>>
>>> Of course, you're not going to tell me what API means versus ABI, and
>>> you're not going to answer my question about what I've got wrong.
>> 
>> Honestly?  No, I'm not.  It's clear that if I tried, you would
>> either not understand, or deliberately ignore it so you could
>> blindly continue in your self-imposed ignorance.
>> 
>>> Because actually you don't know.
>> 
>> Umm.....
>> 
>>> This was apparent from things you've said in the past.
>> 
>> You know, it's one thing to be ignorant yourself.  It's quite
>> another to project that onto others.
>
>I've seen zero evidence that you know anything about the matter. Just 
>bluster.

And sadly, I've seen plenty of evidence confirming that you know
nothing about it at all.

	- Dan C.
Re: Taming The Switch-Statement
#670
Author: David Brown
Date: Thu, 22 Oct 2026 06:57
19 lines
2314 bytes
On 21/10/2026 22:02, Chris M. Thomasson wrote:
> On 10/21/2026 5:17 AM, David Brown wrote:
> [...]
> 
> *_t intrudes into POSIX.

I don't program for POSIX, so I don't care.  The same applies to most 
code that is used in connection with FreeRTOS, or LWIP.  (Of course 
there will be some overlap - bits of code that are intended to run on a 
microcontroller but tested with code running native on a PC.)

I don't know if the "_t" convention for type identifiers started with 
POSIX, but it has certainly far outgrown POSIX.  And I think the smart 
folks behind POSIX know this, and will not assume that just because they 
pick a new type name ending in _t, it will not conflict with some user 
code.  As C doesn't have namespaces, there is always a risk of 
conflicting names - you just have to try to avoid clashes in things you 
are likely to see.
Re: Taming The Switch-Statement
#673
Author: Dan Cross
Date: Thu, 22 Oct 2026 12:56
42 lines
2869 bytes
In article <11bcc4o$jt81$1@dont-email.me>,
David Brown  <david.brown@hesbynett.no> wrote:
>On 21/10/2026 22:02, Chris M. Thomasson wrote:
>> On 10/21/2026 5:17 AM, David Brown wrote:
>> [...]
>> 
>> *_t intrudes into POSIX.
>
>I don't program for POSIX, so I don't care.  The same applies to most 
>code that is used in connection with FreeRTOS, or LWIP.  (Of course 
>there will be some overlap - bits of code that are intended to run on a 
>microcontroller but tested with code running native on a PC.)
>
>I don't know if the "_t" convention for type identifiers started with 
>POSIX, but it has certainly far outgrown POSIX.  And I think the smart 
>folks behind POSIX know this, and will not assume that just because they 
>pick a new type name ending in _t, it will not conflict with some user 
>code.  As C doesn't have namespaces, there is always a risk of 
>conflicting names - you just have to try to avoid clashes in things you 
>are likely to see.

It definitely predates POSIX.  `typdef` appears to have come
into the language with "Typesetter C", which first shipped in
7th Edition research Unix, and 7th Ed had types ending in `_t`;
so 1979 or thereabouts.  For instance, `daddr_t`, `time_t`, and
`caddr_t` to represent disk block addresses, times, and generic
addresses, respectively.  Curiously, `size_t` isn't there yet,
and appears to arrive in 3bsd (also 1979, but based on 32/V),
where it is sized (it's just a typedef for `int`).  `size_t`
makes it back into Research Unix with the 8th Edition, based
on 4BSD; probably 4.1.  It is signed in 8th Ed, and is a typedef
for `long`.  My notes put it into AT&T Unix with System V
Release 3, where it is unsigned.

POSIX started in 1984, building on work done by /usr/group, and
the first issue of POSIX was released in 1988.

Anyway, the point is that the `_t` convention predates POSIX
(and ANSI C) by about a decade.

	- Dan C.
Re: Taming The Switch-Statement
#677
Author: fir
Date: Thu, 22 Oct 2026 15:19
77 lines
4334 bytes
bart pisze:
> On 21/10/2026 21:36, Dan Cross wrote:
>> In article <11bb47i$889c$1@dont-email.me>, bart  <bc@freeuk.com> wrote:
>>> On 21/10/2026 19:38, Dan Cross wrote:
>>>> In article <11baur1$63id$1@dont-email.me>, bart  <bc@freeuk.com> wrote:
>>>
>>>>> So, now tell me what I've got wrong.
>>>>
>>>> Wow.  You really, truly, have no idea how any of this works.  I
>>>> don't even know where to begin.  You just throw around words but
>>>> have no idea what they mean in context.
>>>>
>>>> It's breathtaking, really.
>>>
>>> And Wow, your reply is exactly the kind I expected!
>>>
>>> Of course, you're not going to tell me what API means versus ABI, and
>>> you're not going to answer my question about what I've got wrong.
>>
>> Honestly?  No, I'm not.  It's clear that if I tried, you would
>> either not understand, or deliberately ignore it so you could
>> blindly continue in your self-imposed ignorance.
>>
>>> Because actually you don't know.
>>
>> Umm.....
>>
>>> This was apparent from things you've said in the past.
>>
>> You know, it's one thing to be ignorant yourself.  It's quite
>> another to project that onto others.
> 
> I've seen zero evidence that you know anything about the matter. Just 
> bluster.
> 
> 
>>
>>> I have actually wondered what you're doing here, and this appears to be
>>> it: being hostile, patronising, condescending and constantly taking the
>>> contrary view no matter what.
>>>
>>> In other words, being a troll.
>>
>> It's apparent that you really, truly, do not understand why so
>> many others seem like they are "having a go" at you.  I actually
>> feel kind of bad for you.
> 
> 
> If you don't know this stuff, that would be perfectly fine, not everyone 
> is into compilers.
> 
> But refusing to admit that you mixed up API/ABI and instead gaslighting 
> others into thinking they're the ones in the wrong is unacceptable and 
> childish.
> 
> I've looked at the 40 or so posts you've made in the last few days, half 
> of them were replies to me, all unpleasant exchanges.
> 
> This is just persecution, constantly attacking and belittling at the 
> personal level. Maybe you're some sick fuck and and you get a kick out 
> of it, then you should get help together with JP, that other wonderful 
> person.
> 
> 
i dont know as to dan cross (only read some parts of side discusions 
here) but for sure some people here are somewhat trollish - note keith 
thompson and his sidekicks ;c

but overally clc is quite decent and even this trolls are standable
(mostly)..

maybe its another advantage of writig with mistipes trolls not go into 
you way coz they dont understood what you write ;c

clc is decent place coz honestly wide world has overally much worse 
level than here imo..especially if some opens co called 'media'..thats 
terrible thing
Re: Taming The Switch-Statement
#680
Author: Kaz Kylheku
Date: Thu, 22 Oct 2026 16:54
47 lines
3466 bytes
On 2026-10-22, David Brown <david.brown@hesbynett.no> wrote:
> On 21/10/2026 22:02, Chris M. Thomasson wrote:
>> On 10/21/2026 5:17 AM, David Brown wrote:
>> [...]
>> 
>> *_t intrudes into POSIX.
>
> I don't program for POSIX, so I don't care.  The same applies to most 
> code that is used in connection with FreeRTOS, or LWIP.  (Of course 
> there will be some overlap - bits of code that are intended to run on a 
> microcontroller but tested with code running native on a PC.)
>
> I don't know if the "_t" convention for type identifiers started with 
> POSIX, but it has certainly far outgrown POSIX.  And I think the smart 
> folks behind POSIX know this, and will not assume that just because they 
> pick a new type name ending in _t, it will not conflict with some user 
> code.  As C doesn't have namespaces, there is always a risk of 
> conflicting names - you just have to try to avoid clashes in things you 
> are likely to see.

These namespace declarations are really just a "heads up". POSIX
isn't saying, don't have an identifier ending in _t in a namespace
shared by typedefs. Rather, it is saying that new typedefs appearing
in POSIX will be in that namespace.

Consider this argument: whenever POSIX or ISO C introduces a new
public identifier, it's necessarily going to start with "a", or else if
not, then with "b", or else with "c", ... or else with "z"
or perhaps the underscore.

That doesn't mean you stop using identifiers in programming.

"nullptr" is now a keyword, previously a valid identifier not in
any proclaimed reserved namespace. Progrems which used it have
to be changed to work with the newer language.

Avoiding proclaimed namespaces will not protect you from clashes;
only from clashes that would occur in those namespaces.

Some spaces like _t are too attractive to avoid, because they are tied
to an important, popular convention that everyone understands,
and the benefits outweigh the unrealized risk of a future clash.

-- 
TXR Programming Language: http://nongnu.org/txr
Cygnal: Cygwin Native Application Library: http://kylheku.com/cygnal
Mastodon: @Kazinator@mstdn.ca
Re: Taming The Switch-Statement
#681
Author: Kaz Kylheku
Date: Thu, 22 Oct 2026 17:00
13 lines
1781 bytes
On 2026-10-22, Dan Cross <cross@spitfire.i.gajendra.net> wrote:
> Anyway, the point is that the `_t` convention predates POSIX
> (and ANSI C) by about a decade.

Speaking of caddr_t, that one was spread outside of Unix.  I remember
caddr_t cropping up when I was working with Microsoft C on DOS in 1990.
ANSI/ISO C and its void * were still new, and caddr_t was one of the
conventions for a pointer-to-anything.

-- 
TXR Programming Language: http://nongnu.org/txr
Cygnal: Cygwin Native Application Library: http://kylheku.com/cygnal
Mastodon: @Kazinator@mstdn.ca
Re: Taming The Switch-Statement
#682
Author: David Brown
Date: Thu, 22 Oct 2026 19:09
47 lines
3637 bytes
On 22/10/2026 18:54, Kaz Kylheku wrote:
> On 2026-10-22, David Brown <david.brown@hesbynett.no> wrote:
>> On 21/10/2026 22:02, Chris M. Thomasson wrote:
>>> On 10/21/2026 5:17 AM, David Brown wrote:
>>> [...]
>>>
>>> *_t intrudes into POSIX.
>>
>> I don't program for POSIX, so I don't care.  The same applies to most
>> code that is used in connection with FreeRTOS, or LWIP.  (Of course
>> there will be some overlap - bits of code that are intended to run on a
>> microcontroller but tested with code running native on a PC.)
>>
>> I don't know if the "_t" convention for type identifiers started with
>> POSIX, but it has certainly far outgrown POSIX.  And I think the smart
>> folks behind POSIX know this, and will not assume that just because they
>> pick a new type name ending in _t, it will not conflict with some user
>> code.  As C doesn't have namespaces, there is always a risk of
>> conflicting names - you just have to try to avoid clashes in things you
>> are likely to see.
> 
> These namespace declarations are really just a "heads up". POSIX
> isn't saying, don't have an identifier ending in _t in a namespace
> shared by typedefs. Rather, it is saying that new typedefs appearing
> in POSIX will be in that namespace.
> 
> Consider this argument: whenever POSIX or ISO C introduces a new
> public identifier, it's necessarily going to start with "a", or else if
> not, then with "b", or else with "c", ... or else with "z"
> or perhaps the underscore.
> 
> That doesn't mean you stop using identifiers in programming.
> 
> "nullptr" is now a keyword, previously a valid identifier not in
> any proclaimed reserved namespace. Progrems which used it have
> to be changed to work with the newer language.
> 
> Avoiding proclaimed namespaces will not protect you from clashes;
> only from clashes that would occur in those namespaces.
> 
> Some spaces like _t are too attractive to avoid, because they are tied
> to an important, popular convention that everyone understands,
> and the benefits outweigh the unrealized risk of a future clash.
> 

I agree entirely.
Re: Taming The Switch-Statement
#683
Author: Chris M. Thomasson
Date: Thu, 22 Oct 2026 19:46
46 lines
3704 bytes
On 10/22/2026 9:54 AM, Kaz Kylheku wrote:
> On 2026-10-22, David Brown <david.brown@hesbynett.no> wrote:
>> On 21/10/2026 22:02, Chris M. Thomasson wrote:
>>> On 10/21/2026 5:17 AM, David Brown wrote:
>>> [...]
>>>
>>> *_t intrudes into POSIX.
>>
>> I don't program for POSIX, so I don't care.  The same applies to most
>> code that is used in connection with FreeRTOS, or LWIP.  (Of course
>> there will be some overlap - bits of code that are intended to run on a
>> microcontroller but tested with code running native on a PC.)
>>
>> I don't know if the "_t" convention for type identifiers started with
>> POSIX, but it has certainly far outgrown POSIX.  And I think the smart
>> folks behind POSIX know this, and will not assume that just because they
>> pick a new type name ending in _t, it will not conflict with some user
>> code.  As C doesn't have namespaces, there is always a risk of
>> conflicting names - you just have to try to avoid clashes in things you
>> are likely to see.
> 
> These namespace declarations are really just a "heads up". POSIX
> isn't saying, don't have an identifier ending in _t in a namespace
> shared by typedefs. Rather, it is saying that new typedefs appearing
> in POSIX will be in that namespace.
> 
> Consider this argument: whenever POSIX or ISO C introduces a new
> public identifier, it's necessarily going to start with "a", or else if
> not, then with "b", or else with "c", ... or else with "z"
> or perhaps the underscore.
> 
> That doesn't mean you stop using identifiers in programming.
> 
> "nullptr" is now a keyword, previously a valid identifier not in
> any proclaimed reserved namespace. Progrems which used it have
> to be changed to work with the newer language.
> 
> Avoiding proclaimed namespaces will not protect you from clashes;
> only from clashes that would occur in those namespaces.
> 
> Some spaces like _t are too attractive to avoid, because they are tied
> to an important, popular convention that everyone understands,
> and the benefits outweigh the unrealized risk of a future clash.
> 

Touche. How about _this vs this_. I just use self and be done with it.
Re: Taming The Switch-Statement
#689
Author: Keith Thompson
Date: Thu, 22 Oct 2026 23:42
36 lines
3039 bytes
Kaz Kylheku <046-301-5902@kylheku.com> writes:
[...]
> These namespace declarations are really just a "heads up". POSIX
> isn't saying, don't have an identifier ending in _t in a namespace
> shared by typedefs. Rather, it is saying that new typedefs appearing
> in POSIX will be in that namespace.
[...]

No, it says that all conforming applications are required to avoid
symbols ending in "_t".

https://pubs.opengroup.org/onlinepubs/9799919799/xrat/V4_xsh_chap01.html
B.2.11.1 Defined Types

    The requirement that additional types defined in this section
    end in "_t" was prompted by the problem of name space pollution.
    It is difficult to define a type (where that type is not one
    defined by POSIX.1-2024) in one header file and use it in another
    without adding symbols to the name space of the program. To
    allow implementors to provide their own types, all conforming
    applications are required to avoid symbols ending in "_t",
    which permits the implementor to provide additional types.
    Because a major use of types is in the definition of structure
    members, which can (and in many cases must) be added to the
    structures defined in POSIX.1-2024, the need for additional
    types is compelling.

Of course you don't have to avoid defining symbols ending with "_t"
if you don't want to, but if you do so you don't have a "conforming
application" as far as POSIX is concerned.

It is, of course, an imperfect solution.

-- 
Keith Thompson (The_Other_Keith) Keith.S.Thompson+u@gmail.com
void Void(void) { Void(); } /* The recursive call of the void */
Re: Taming The Switch-Statement
#690
Author: Blaine
Date: Fri, 23 Oct 2026 00:38
44 lines
3517 bytes
Keith Thompson wrote:
> Kaz Kylheku <046-301-5902@kylheku.com> writes:
> [...]
>> These namespace declarations are really just a "heads up". POSIX
>> isn't saying, don't have an identifier ending in _t in a namespace
>> shared by typedefs. Rather, it is saying that new typedefs appearing
>> in POSIX will be in that namespace.
> [...]
> 
> No, it says that all conforming applications are required to avoid
> symbols ending in "_t".
> 
> https://pubs.opengroup.org/onlinepubs/9799919799/xrat/V4_xsh_chap01.html
> B.2.11.1 Defined Types
> 
>      The requirement that additional types defined in this section
>      end in "_t" was prompted by the problem of name space pollution.
>      It is difficult to define a type (where that type is not one
>      defined by POSIX.1-2024) in one header file and use it in another
>      without adding symbols to the name space of the program. To
>      allow implementors to provide their own types, all conforming
>      applications are required to avoid symbols ending in "_t",
>      which permits the implementor to provide additional types.
>      Because a major use of types is in the definition of structure
>      members, which can (and in many cases must) be added to the
>      structures defined in POSIX.1-2024, the need for additional
>      types is compelling.
> 
> Of course you don't have to avoid defining symbols ending with "_t"
> if you don't want to, but if you do so you don't have a "conforming
> application" as far as POSIX is concerned.
> 
> It is, of course, an imperfect solution.
> 
Aside from having to type 'break' for each 'case', do you have a 
legitimate case?

-- 
Can you strip away so we may start again?
"There’s a switch and they don't
seem authentic or themselves. It
feels like I’m an unnecessary
body and it’s a waste of time to
even be there." -- Grim, playful Blaine.
Re: Taming The Switch-Statement
#691
Author: Kaz Kylheku
Date: Fri, 23 Oct 2026 04:23
37 lines
3034 bytes
On 2026-10-22, Keith Thompson <Keith.S.Thompson+u@gmail.com> wrote:
> Kaz Kylheku <046-301-5902@kylheku.com> writes:
> [...]
>> These namespace declarations are really just a "heads up". POSIX
>> isn't saying, don't have an identifier ending in _t in a namespace
>> shared by typedefs. Rather, it is saying that new typedefs appearing
>> in POSIX will be in that namespace.
> [...]
>
> No, it says that all conforming applications are required to avoid
> symbols ending in "_t".

That concept is needed in order to make it the application's fault
when it suddenly fails to build because it's using foo_t, and
POSIX decides to introduced that into <sys/types.h>.

If you use _t, a clash may happen, and if it does, then since POSIX
told-you-so, it must be your program that is nonconforming, and not the
POSIX has a defect or the implementation is nonconforming.

> Of course you don't have to avoid defining symbols ending with "_t"
> if you don't want to, but if you do so you don't have a "conforming
> application" as far as POSIX is concerned.

This is okay if you have a grip on the nonconformances in the
application. You know where they are and have a way to be informed when
they turn into real problems and a plan for that situation.

Remember, a program that uses nullptr as a variable name was once
conforming. Through no change in the program whatsoever, it became
nonconforming. Playing the conformance game in this area is largely
a fool's errand.

-- 
TXR Programming Language: http://nongnu.org/txr
Cygnal: Cygwin Native Application Library: http://kylheku.com/cygnal
Mastodon: @Kazinator@mstdn.ca
Re: Taming The Switch-Statement
#695
Author: David Brown
Date: Fri, 23 Oct 2026 07:37
41 lines
3393 bytes
On 22/10/2026 21:46, Chris M. Thomasson wrote:
> On 10/22/2026 9:54 AM, Kaz Kylheku wrote:
>> On 2026-10-22, David Brown <david.brown@hesbynett.no> wrote:
>>> On 21/10/2026 22:02, Chris M. Thomasson wrote:
>>>> On 10/21/2026 5:17 AM, David Brown wrote:
>>>> [...]
>>>>
>>>> *_t intrudes into POSIX.
>>>
>>> I don't program for POSIX, so I don't care.  The same applies to most
>>> code that is used in connection with FreeRTOS, or LWIP.  (Of course
>>> there will be some overlap - bits of code that are intended to run on a
>>> microcontroller but tested with code running native on a PC.)
>>>

>> Avoiding proclaimed namespaces will not protect you from clashes;
>> only from clashes that would occur in those namespaces.
>>
>> Some spaces like _t are too attractive to avoid, because they are tied
>> to an important, popular convention that everyone understands,
>> and the benefits outweigh the unrealized risk of a future clash.
>>
> 
> Touche. How about _this vs this_. I just use self and be done with it.

Imagine, just for a moment, that the rest of us are not privy to the 
jumble of thoughts and ideas that jump around in your head.  I don't 
have the context of what you are thinking about.  So I have no idea what 
you mean by this.

Instead of posting random out-of-context snippets of thought, either 
write posts that say what you are talking about, or don't bother.  (And 
do /not/ imagine that posting reams of unconnected code is a useful 
alternative.)

If you are trying to say something about avoiding C++ keywords when 
picking identifiers in C coding, say that.  If you are trying to say 
something about naming conventions for C++ class members, feel free to 
talk about that too - in comp.lang.c++.  If you are trying to say 
something else, say it.  Or drop it, if you prefer.
Re: Taming The Switch-Statement
#699
Author: Keith Thompson
Date: Fri, 23 Oct 2026 08:09
40 lines
3293 bytes
Kaz Kylheku <046-301-5902@kylheku.com> writes:
> On 2026-10-22, Keith Thompson <Keith.S.Thompson+u@gmail.com> wrote:
>> Kaz Kylheku <046-301-5902@kylheku.com> writes:
>> [...]
>>> These namespace declarations are really just a "heads up". POSIX
>>> isn't saying, don't have an identifier ending in _t in a namespace
>>> shared by typedefs. Rather, it is saying that new typedefs appearing
>>> in POSIX will be in that namespace.
>> [...]
>>
>> No, it says that all conforming applications are required to avoid
>> symbols ending in "_t".
>
> That concept is needed in order to make it the application's fault
> when it suddenly fails to build because it's using foo_t, and
> POSIX decides to introduced that into <sys/types.h>.
>
> If you use _t, a clash may happen, and if it does, then since POSIX
> told-you-so, it must be your program that is nonconforming, and not the
> POSIX has a defect or the implementation is nonconforming.
>
>> Of course you don't have to avoid defining symbols ending with "_t"
>> if you don't want to, but if you do so you don't have a "conforming
>> application" as far as POSIX is concerned.
>
> This is okay if you have a grip on the nonconformances in the
> application. You know where they are and have a way to be informed when
> they turn into real problems and a plan for that situation.
>
> Remember, a program that uses nullptr as a variable name was once
> conforming. Through no change in the program whatsoever, it became
> nonconforming. Playing the conformance game in this area is largely
> a fool's errand.

Yes, I understand all that.  I was commenting on what POSIX actually
says.

-- 
Keith Thompson (The_Other_Keith) Keith.S.Thompson+u@gmail.com
void Void(void) { Void(); } /* The recursive call of the void */
Re: Taming The Switch-Statement
#724
Author: Chris M. Thomasson
Date: Fri, 23 Oct 2026 21:21
66 lines
3829 bytes
On 10/23/2026 12:37 AM, David Brown wrote:
> On 22/10/2026 21:46, Chris M. Thomasson wrote:
>> On 10/22/2026 9:54 AM, Kaz Kylheku wrote:
>>> On 2026-10-22, David Brown <david.brown@hesbynett.no> wrote:
>>>> On 21/10/2026 22:02, Chris M. Thomasson wrote:
>>>>> On 10/21/2026 5:17 AM, David Brown wrote:
>>>>> [...]
>>>>>
>>>>> *_t intrudes into POSIX.
>>>>
>>>> I don't program for POSIX, so I don't care.  The same applies to most
>>>> code that is used in connection with FreeRTOS, or LWIP.  (Of course
>>>> there will be some overlap - bits of code that are intended to run on a
>>>> microcontroller but tested with code running native on a PC.)
>>>>
> 
>>> Avoiding proclaimed namespaces will not protect you from clashes;
>>> only from clashes that would occur in those namespaces.
>>>
>>> Some spaces like _t are too attractive to avoid, because they are tied
>>> to an important, popular convention that everyone understands,
>>> and the benefits outweigh the unrealized risk of a future clash.
>>>
>>
>> Touche. How about _this vs this_. I just use self and be done with it.
> 
> Imagine, just for a moment, that the rest of us are not privy to the 
> jumble of thoughts and ideas that jump around in your head.  I don't 
> have the context of what you are thinking about.  So I have no idea what 
> you mean by this.
> 
> Instead of posting random out-of-context snippets of thought, either 
> write posts that say what you are talking about, or don't bother.  (And 
> do /not/ imagine that posting reams of unconnected code is a useful 
> alternative.)
> 
> If you are trying to say something about avoiding C++ keywords when 
> picking identifiers in C coding, say that.  If you are trying to say 
> something about naming conventions for C++ class members, feel free to 
> talk about that too - in comp.lang.c++.  If you are trying to say 
> something else, say it.  Or drop it, if you prefer.
> 

Or, Well,

_this

vs

this_

Are they both legal?

I like self.

void foo(struct foo* const self);

vs

void foo(struct foo* const _this);
void foo(struct foo* const this);
void foo(struct foo* const this_);

? For some reason I do not want to use this in C.

Re: Taming The Switch-Statement
#725
Author: Lawrence D’Oliveiro
Date: Fri, 23 Oct 2026 22:40
8 lines
1746 bytes
On Fri, 23 Oct 2026 14:21:15 -0700, Chris M. Thomasson wrote:

> I like self.
>
> void foo(struct foo* const self);

The trouble with a fixed name is, how do you refer to the instance of
an outer class?
Re: Taming The Switch-Statement
#726
Author: Chris M. Thomasson
Date: Sat, 24 Oct 2026 01:33
18 lines
2367 bytes
On 10/23/2026 3:40 PM, Lawrence D’Oliveiro wrote:
> On Fri, 23 Oct 2026 14:21:15 -0700, Chris M. Thomasson wrote:
> 
>> I like self.
>>
>> void foo(struct foo* const self);
> 
> The trouble with a fixed name is, how do you refer to the instance of
> an outer class?

Well, self can be internal to the API logic. See, user code does not 
need to care how self is organized. It just needs to allocate n bytes 
aligned on a boundary and call into the API to init it. calling a 
deinit, or destroy whatever after its done. So the caller manages the 
main memory. After its done it can make the memory go out of scope or 
deallocate it, free or whatever.

So, internal to the lib, self->foo is there.
Re: Taming The Switch-Statement
#732
Author: David Brown
Date: Sat, 24 Oct 2026 10:58
85 lines
4788 bytes
On 23/10/2026 23:21, Chris M. Thomasson wrote:
> On 10/23/2026 12:37 AM, David Brown wrote:
>> On 22/10/2026 21:46, Chris M. Thomasson wrote:
>>> On 10/22/2026 9:54 AM, Kaz Kylheku wrote:
>>>> On 2026-10-22, David Brown <david.brown@hesbynett.no> wrote:
>>>>> On 21/10/2026 22:02, Chris M. Thomasson wrote:
>>>>>> On 10/21/2026 5:17 AM, David Brown wrote:
>>>>>> [...]
>>>>>>
>>>>>> *_t intrudes into POSIX.
>>>>>
>>>>> I don't program for POSIX, so I don't care.  The same applies to most
>>>>> code that is used in connection with FreeRTOS, or LWIP.  (Of course
>>>>> there will be some overlap - bits of code that are intended to run 
>>>>> on a
>>>>> microcontroller but tested with code running native on a PC.)
>>>>>
>>
>>>> Avoiding proclaimed namespaces will not protect you from clashes;
>>>> only from clashes that would occur in those namespaces.
>>>>
>>>> Some spaces like _t are too attractive to avoid, because they are tied
>>>> to an important, popular convention that everyone understands,
>>>> and the benefits outweigh the unrealized risk of a future clash.
>>>>
>>>
>>> Touche. How about _this vs this_. I just use self and be done with it.
>>
>> Imagine, just for a moment, that the rest of us are not privy to the 
>> jumble of thoughts and ideas that jump around in your head.  I don't 
>> have the context of what you are thinking about.  So I have no idea 
>> what you mean by this.
>>
>> Instead of posting random out-of-context snippets of thought, either 
>> write posts that say what you are talking about, or don't bother.  
>> (And do /not/ imagine that posting reams of unconnected code is a 
>> useful alternative.)
>>
>> If you are trying to say something about avoiding C++ keywords when 
>> picking identifiers in C coding, say that.  If you are trying to say 
>> something about naming conventions for C++ class members, feel free to 
>> talk about that too - in comp.lang.c++.  If you are trying to say 
>> something else, say it.  Or drop it, if you prefer.
>>
> 
> Or, Well,
> 
> _this
> 
> vs
> 
> this_
> 
> Are they both legal?

What do you mean, "legal" ?  Identifiers in C can start with any letter 
(including most Unicode "letters") or underscore, or any other 
implementation-defined characters.  Subsequent characters can be any of 
these or a normal digit from the basic source character set.

The only identifiers you may not use are ones that match keywords.

There are various patterns that are "reserved", depending on header 
usage, but using them is still "legal".  The main ones to avoid are 
identifiers starting with two underscores, or one underscore and a 
capital letter.

> 
> I like self.
> 
> void foo(struct foo* const self);
> 
> vs
> 
> void foo(struct foo* const _this);
> void foo(struct foo* const this);
> void foo(struct foo* const this_);
> 
> ? For some reason I do not want to use this in C.
> 

Use whichever you like.  I would personally avoid using an identifier in 
C that matches a keyword (or "contextual keyword") in C++, to make it 
easier to re-use the same code in C++.  But you don't have to do the same.
Re: Taming The Switch-Statement
#745
Author: Lawrence D’Oliveiro
Date: Sat, 24 Oct 2026 22:26
11 lines
1995 bytes
On Fri, 23 Oct 2026 18:33:56 -0700, Chris M. Thomasson wrote:

> On 10/23/2026 3:40 PM, Lawrence D’Oliveiro wrote:
>>
>> The trouble with a fixed name is, how do you refer to the instance
>> of an outer class?
>
> Well, self can be internal to the API logic.

If “self” refers to the current instance of the innermost class, how
do you refer to an instance of an outer class?
Modelling self/this? (was Re: Taming The Switch-Statement)
#746
Author: Janis Papanagnou
Date: Sat, 24 Oct 2026 22:56
27 lines
2804 bytes
On 2026-10-25 00:26, Lawrence D’Oliveiro wrote:
> On Fri, 23 Oct 2026 18:33:56 -0700, Chris M. Thomasson wrote:
>> On 10/23/2026 3:40 PM, Lawrence D’Oliveiro wrote:
>>>
>>> The trouble with a fixed name is, how do you refer to the instance
>>> of an outer class?
>>
>> Well, self can be internal to the API logic.
> 
> If “self” refers to the current instance of the innermost class, how
> do you refer to an instance of an outer class?

I'm a bit confused about the intention of this sub-thread in CLC.

Since you have already been (at least implicitly) referring to
other languages (by mention of 'self' and 'this') I'd answer the
question that (in principal) a language could qualify the access;
for example, Simula has "THIS DerivedClass" or "THIS BaseClass",
or whatever class in the actual class-path is visible. We could
also access attributes that need an access qualification by the
'QUA' keyword to disambiguate names common in base and derived
classes.

Still curious about the "plan" (for "C") behind, why asking this.

Janis
Re: Taming The Switch-Statement
#749
Author: Keith Thompson
Date: Sat, 24 Oct 2026 23:38
20 lines
2452 bytes
Lawrence D’Oliveiro <ldo@nz.invalid> writes:
> On Fri, 23 Oct 2026 18:33:56 -0700, Chris M. Thomasson wrote:
>> On 10/23/2026 3:40 PM, Lawrence D’Oliveiro wrote:
>>> The trouble with a fixed name is, how do you refer to the instance
>>> of an outer class?
>>
>> Well, self can be internal to the API logic.
>
> If “self” refers to the current instance of the innermost class, how
> do you refer to an instance of an outer class?

What's a "class"?

There are ways to implement or simulate classes and inheritance in C.
Without knowing how that's being done, it's not very meaningful to ask
how to refer to an instance of an outer class.

-- 
Keith Thompson (The_Other_Keith) Keith.S.Thompson+u@gmail.com
void Void(void) { Void(); } /* The recursive call of the void */
Re: Taming The Switch-Statement
#752
Author: Chris M. Thomasson
Date: Sun, 25 Oct 2026 04:42
88 lines
5002 bytes
On 10/24/2026 3:58 AM, David Brown wrote:
> On 23/10/2026 23:21, Chris M. Thomasson wrote:
>> On 10/23/2026 12:37 AM, David Brown wrote:
>>> On 22/10/2026 21:46, Chris M. Thomasson wrote:
>>>> On 10/22/2026 9:54 AM, Kaz Kylheku wrote:
>>>>> On 2026-10-22, David Brown <david.brown@hesbynett.no> wrote:
>>>>>> On 21/10/2026 22:02, Chris M. Thomasson wrote:
>>>>>>> On 10/21/2026 5:17 AM, David Brown wrote:
>>>>>>> [...]
>>>>>>>
>>>>>>> *_t intrudes into POSIX.
>>>>>>
>>>>>> I don't program for POSIX, so I don't care.  The same applies to most
>>>>>> code that is used in connection with FreeRTOS, or LWIP.  (Of course
>>>>>> there will be some overlap - bits of code that are intended to run 
>>>>>> on a
>>>>>> microcontroller but tested with code running native on a PC.)
>>>>>>
>>>
>>>>> Avoiding proclaimed namespaces will not protect you from clashes;
>>>>> only from clashes that would occur in those namespaces.
>>>>>
>>>>> Some spaces like _t are too attractive to avoid, because they are tied
>>>>> to an important, popular convention that everyone understands,
>>>>> and the benefits outweigh the unrealized risk of a future clash.
>>>>>
>>>>
>>>> Touche. How about _this vs this_. I just use self and be done with it.
>>>
>>> Imagine, just for a moment, that the rest of us are not privy to the 
>>> jumble of thoughts and ideas that jump around in your head.  I don't 
>>> have the context of what you are thinking about.  So I have no idea 
>>> what you mean by this.
>>>
>>> Instead of posting random out-of-context snippets of thought, either 
>>> write posts that say what you are talking about, or don't bother. 
>>> (And do /not/ imagine that posting reams of unconnected code is a 
>>> useful alternative.)
>>>
>>> If you are trying to say something about avoiding C++ keywords when 
>>> picking identifiers in C coding, say that.  If you are trying to say 
>>> something about naming conventions for C++ class members, feel free 
>>> to talk about that too - in comp.lang.c++.  If you are trying to say 
>>> something else, say it.  Or drop it, if you prefer.
>>>
>>
>> Or, Well,
>>
>> _this
>>
>> vs
>>
>> this_
>>
>> Are they both legal?
> 
> What do you mean, "legal" ?  Identifiers in C can start with any letter 
> (including most Unicode "letters") or underscore, or any other 
> implementation-defined characters.  Subsequent characters can be any of 
> these or a normal digit from the basic source character set.
> 
> The only identifiers you may not use are ones that match keywords.
> 
> There are various patterns that are "reserved", depending on header 
> usage, but using them is still "legal".  The main ones to avoid are 
> identifiers starting with two underscores, or one underscore and a 
> capital letter.
> 
>>
>> I like self.
>>
>> void foo(struct foo* const self);
>>
>> vs
>>
>> void foo(struct foo* const _this);
>> void foo(struct foo* const this);
>> void foo(struct foo* const this_);
>>
>> ? For some reason I do not want to use this in C.
>>
> 
> Use whichever you like.  I would personally avoid using an identifier in 
> C that matches a keyword (or "contextual keyword") in C++, to make it 
> easier to re-use the same code in C++.  But you don't have to do the same.
> 

_this good, _This bad?
Re: Taming The Switch-Statement
#754
Author: David Brown
Date: Sun, 25 Oct 2026 09:51
97 lines
5341 bytes
On 25/10/2026 05:42, Chris M. Thomasson wrote:
> On 10/24/2026 3:58 AM, David Brown wrote:
>> On 23/10/2026 23:21, Chris M. Thomasson wrote:
>>> On 10/23/2026 12:37 AM, David Brown wrote:
>>>> On 22/10/2026 21:46, Chris M. Thomasson wrote:
>>>>> On 10/22/2026 9:54 AM, Kaz Kylheku wrote:
>>>>>> On 2026-10-22, David Brown <david.brown@hesbynett.no> wrote:
>>>>>>> On 21/10/2026 22:02, Chris M. Thomasson wrote:
>>>>>>>> On 10/21/2026 5:17 AM, David Brown wrote:
>>>>>>>> [...]
>>>>>>>>
>>>>>>>> *_t intrudes into POSIX.
>>>>>>>
>>>>>>> I don't program for POSIX, so I don't care.  The same applies to 
>>>>>>> most
>>>>>>> code that is used in connection with FreeRTOS, or LWIP.  (Of course
>>>>>>> there will be some overlap - bits of code that are intended to 
>>>>>>> run on a
>>>>>>> microcontroller but tested with code running native on a PC.)
>>>>>>>
>>>>
>>>>>> Avoiding proclaimed namespaces will not protect you from clashes;
>>>>>> only from clashes that would occur in those namespaces.
>>>>>>
>>>>>> Some spaces like _t are too attractive to avoid, because they are 
>>>>>> tied
>>>>>> to an important, popular convention that everyone understands,
>>>>>> and the benefits outweigh the unrealized risk of a future clash.
>>>>>>
>>>>>
>>>>> Touche. How about _this vs this_. I just use self and be done with it.
>>>>
>>>> Imagine, just for a moment, that the rest of us are not privy to the 
>>>> jumble of thoughts and ideas that jump around in your head.  I don't 
>>>> have the context of what you are thinking about.  So I have no idea 
>>>> what you mean by this.
>>>>
>>>> Instead of posting random out-of-context snippets of thought, either 
>>>> write posts that say what you are talking about, or don't bother. 
>>>> (And do /not/ imagine that posting reams of unconnected code is a 
>>>> useful alternative.)
>>>>
>>>> If you are trying to say something about avoiding C++ keywords when 
>>>> picking identifiers in C coding, say that.  If you are trying to say 
>>>> something about naming conventions for C++ class members, feel free 
>>>> to talk about that too - in comp.lang.c++.  If you are trying to say 
>>>> something else, say it.  Or drop it, if you prefer.
>>>>
>>>
>>> Or, Well,
>>>
>>> _this
>>>
>>> vs
>>>
>>> this_
>>>
>>> Are they both legal?
>>
>> What do you mean, "legal" ?  Identifiers in C can start with any 
>> letter (including most Unicode "letters") or underscore, or any other 
>> implementation-defined characters.  Subsequent characters can be any 
>> of these or a normal digit from the basic source character set.
>>
>> The only identifiers you may not use are ones that match keywords.
>>
>> There are various patterns that are "reserved", depending on header 
>> usage, but using them is still "legal".  The main ones to avoid are 
>> identifiers starting with two underscores, or one underscore and a 
>> capital letter.
>>
>>>
>>> I like self.
>>>
>>> void foo(struct foo* const self);
>>>
>>> vs
>>>
>>> void foo(struct foo* const _this);
>>> void foo(struct foo* const this);
>>> void foo(struct foo* const this_);
>>>
>>> ? For some reason I do not want to use this in C.
>>>
>>
>> Use whichever you like.  I would personally avoid using an identifier 
>> in C that matches a keyword (or "contextual keyword") in C++, to make 
>> it easier to re-use the same code in C++.  But you don't have to do 
>> the same.
>>
> 
> _this good, _This bad?

You figure it out.  I'm done trying to understand your silly little 
posts and silly little questions, and then spoon-feed you basics about 
the C language.
Re: Case-Sensitivity (was Re: Taming The Switch-Statement)
#763
Author: Lawrence D’Oliveiro
Date: Sun, 25 Oct 2026 20:30
9 lines
1950 bytes
On Sat, 24 Oct 2026 21:42:50 -0700, Chris M. Thomasson wrote:

> _this good, _This bad?

If asked “how many letters are there in the English alphabet?”, what
answer do you think (normal) people are more likely to give: “26” or
“52”?

I think the instinctive answer most people would give is “26”.
Re: Taming The Switch-Statement
#765
Author: Chris M. Thomasson
Date: Sun, 25 Oct 2026 20:54
102 lines
5645 bytes
On 10/25/2026 2:51 AM, David Brown wrote:
> On 25/10/2026 05:42, Chris M. Thomasson wrote:
>> On 10/24/2026 3:58 AM, David Brown wrote:
>>> On 23/10/2026 23:21, Chris M. Thomasson wrote:
>>>> On 10/23/2026 12:37 AM, David Brown wrote:
>>>>> On 22/10/2026 21:46, Chris M. Thomasson wrote:
>>>>>> On 10/22/2026 9:54 AM, Kaz Kylheku wrote:
>>>>>>> On 2026-10-22, David Brown <david.brown@hesbynett.no> wrote:
>>>>>>>> On 21/10/2026 22:02, Chris M. Thomasson wrote:
>>>>>>>>> On 10/21/2026 5:17 AM, David Brown wrote:
>>>>>>>>> [...]
>>>>>>>>>
>>>>>>>>> *_t intrudes into POSIX.
>>>>>>>>
>>>>>>>> I don't program for POSIX, so I don't care.  The same applies to 
>>>>>>>> most
>>>>>>>> code that is used in connection with FreeRTOS, or LWIP.  (Of course
>>>>>>>> there will be some overlap - bits of code that are intended to 
>>>>>>>> run on a
>>>>>>>> microcontroller but tested with code running native on a PC.)
>>>>>>>>
>>>>>
>>>>>>> Avoiding proclaimed namespaces will not protect you from clashes;
>>>>>>> only from clashes that would occur in those namespaces.
>>>>>>>
>>>>>>> Some spaces like _t are too attractive to avoid, because they are 
>>>>>>> tied
>>>>>>> to an important, popular convention that everyone understands,
>>>>>>> and the benefits outweigh the unrealized risk of a future clash.
>>>>>>>
>>>>>>
>>>>>> Touche. How about _this vs this_. I just use self and be done with 
>>>>>> it.
>>>>>
>>>>> Imagine, just for a moment, that the rest of us are not privy to 
>>>>> the jumble of thoughts and ideas that jump around in your head.  I 
>>>>> don't have the context of what you are thinking about.  So I have 
>>>>> no idea what you mean by this.
>>>>>
>>>>> Instead of posting random out-of-context snippets of thought, 
>>>>> either write posts that say what you are talking about, or don't 
>>>>> bother. (And do /not/ imagine that posting reams of unconnected 
>>>>> code is a useful alternative.)
>>>>>
>>>>> If you are trying to say something about avoiding C++ keywords when 
>>>>> picking identifiers in C coding, say that.  If you are trying to 
>>>>> say something about naming conventions for C++ class members, feel 
>>>>> free to talk about that too - in comp.lang.c++.  If you are trying 
>>>>> to say something else, say it.  Or drop it, if you prefer.
>>>>>
>>>>
>>>> Or, Well,
>>>>
>>>> _this
>>>>
>>>> vs
>>>>
>>>> this_
>>>>
>>>> Are they both legal?
>>>
>>> What do you mean, "legal" ?  Identifiers in C can start with any 
>>> letter (including most Unicode "letters") or underscore, or any other 
>>> implementation-defined characters.  Subsequent characters can be any 
>>> of these or a normal digit from the basic source character set.
>>>
>>> The only identifiers you may not use are ones that match keywords.
>>>
>>> There are various patterns that are "reserved", depending on header 
>>> usage, but using them is still "legal".  The main ones to avoid are 
>>> identifiers starting with two underscores, or one underscore and a 
>>> capital letter.
>>>
>>>>
>>>> I like self.
>>>>
>>>> void foo(struct foo* const self);
>>>>
>>>> vs
>>>>
>>>> void foo(struct foo* const _this);
>>>> void foo(struct foo* const this);
>>>> void foo(struct foo* const this_);
>>>>
>>>> ? For some reason I do not want to use this in C.
>>>>
>>>
>>> Use whichever you like.  I would personally avoid using an identifier 
>>> in C that matches a keyword (or "contextual keyword") in C++, to make 
>>> it easier to re-use the same code in C++.  But you don't have to do 
>>> the same.
>>>
>>
>> _this good, _This bad?
> 
> You figure it out.  I'm done trying to understand your silly little 
> posts and silly little questions, and then spoon-feed you basics about 
> the C language.
> 

I already know, just like *_t can be bad. Just shooting the breeze. No 
need to get pissed off.
Re: Case-Sensitivity (was Re: Taming The Switch-Statement)
#792
Author: Blaine
Date: Mon, 26 Oct 2026 16:28
20 lines
2435 bytes
Lawrence D’Oliveiro wrote:
> On Sat, 24 Oct 2026 21:42:50 -0700, Chris M. Thomasson wrote:
> 
>> _this good, _This bad?
> 
> If asked “how many letters are there in the English alphabet?”, what
> answer do you think (normal) people are more likely to give: “26” or
> “52”?
> 
> I think the instinctive answer most people would give is “26”.
> 
They usually give 51 because 'O' is just a bigger 'o'.

-- 
Can you strip away so we may start again?
"There’s a switch and they don't
seem authentic or themselves. It
feels like I’m an unnecessary
body and it’s a waste of time to
even be there." -- Grim, playful Blaine.
Re: Taming The Switch-Statement
#912
Author: steve g
Date: Wed, 28 Oct 2026 05:13
26 lines
2866 bytes
Keith Thompson <Keith.S.Thompson+u@gmail.com> writes:

> Lawrence D’Oliveiro <ldo@nz.invalid> writes:
>> On Fri, 23 Oct 2026 18:33:56 -0700, Chris M. Thomasson wrote:
>>> On 10/23/2026 3:40 PM, Lawrence D’Oliveiro wrote:
>>>> The trouble with a fixed name is, how do you refer to the instance
>>>> of an outer class?
>>>
>>> Well, self can be internal to the API logic.
>>
>> If “self” refers to the current instance of the innermost class, how
>> do you refer to an instance of an outer class?
>
> What's a "class"?

an object is a data structure that has an identity. I remeber this from
a long time ago. A class i dunno.

> There are ways to implement or simulate classes and inheritance in C.
> Without knowing how that's being done, it's not very meaningful to ask
> how to refer to an instance of an outer class.

To access an ``outer'' class, or a nested object, would depend on the
programming language. I would recommend GCC. it allows for nested
functions. Just stick the functions into a vector and well...
Re: Taming The Switch-Statement
#914
Author: Keith Thompson
Date: Wed, 28 Oct 2026 05:33
35 lines
3136 bytes
steve g <Sgonedes1977@gmail.com> writes:
> Keith Thompson <Keith.S.Thompson+u@gmail.com> writes:
>> Lawrence D’Oliveiro <ldo@nz.invalid> writes:
>>> On Fri, 23 Oct 2026 18:33:56 -0700, Chris M. Thomasson wrote:
>>>> On 10/23/2026 3:40 PM, Lawrence D’Oliveiro wrote:
>>>>> The trouble with a fixed name is, how do you refer to the instance
>>>>> of an outer class?
>>>>
>>>> Well, self can be internal to the API logic.
>>>
>>> If “self” refers to the current instance of the innermost class, how
>>> do you refer to an instance of an outer class?
>>
>> What's a "class"?
>
> an object is a data structure that has an identity. I remeber this from
> a long time ago. A class i dunno.

I wasn't really asking what a class is.  I was asking what LDO
means by "class", since he posted in comp.lang.c, and C doesn't
have classes as a language feature.

[snip]

> To access an ``outer'' class, or a nested object, would depend on the
> programming language. I would recommend GCC. it allows for nested
> functions. Just stick the functions into a vector and well...

GCC is not a language.  It's a collection of compilers for several
languages -- some of which fully support object-oriented programming,
if that's what you're looking for.

-- 
Keith Thompson (The_Other_Keith) Keith.S.Thompson+u@gmail.com
void Void(void) { Void(); } /* The recursive call of the void */
Re: Case-Sensitivity (was Re: Taming The Switch-Statement)
#921
Author: steve g
Date: Wed, 28 Oct 2026 06:26
15 lines
2236 bytes
Lawrence D’Oliveiro <ldo@nz.invalid> writes:

> On Sat, 24 Oct 2026 21:42:50 -0700, Chris M. Thomasson wrote:
>
>> _this good, _This bad?
>
> If asked “how many letters are there in the English alphabet?”, what
> answer do you think (normal) people are more likely to give: “26” or
> “52”?
>
> I think the instinctive answer most people would give is “26”.

128

if you count space, ; : ; 1 0 & ~ 	
Re: Case-Sensitivity (was Re: Taming The Switch-Statement)
#948
Author: Janis Papanagnou
Date: Wed, 28 Oct 2026 14:50
29 lines
2719 bytes
On 2026-10-28 07:26, steve g wrote:
> Lawrence D’Oliveiro <ldo@nz.invalid> writes:
> 
>> If asked “how many letters are there in the English alphabet?”, what
>> answer do you think (normal) people are more likely to give: “26” or
>> “52”?
>>
>> I think the instinctive answer most people would give is “26”.

Yes, obviously. And not only people, also encyclopedias would say that.

> 
> 128

This sounds more like the answer to "How many characters contains the
ASCII character set?". And is 'BEL' a letter of the English alphabet?

> 
> if you count space, ; : ; 1 0 & ~ 	

Is e.g. '~' an English "letter"? Even if we count non-alpha characters
as "letters" it's typically just a diacritical symbol used in languages
like in Spanish. And ';', ':', ';' are called punctuation characters.

Since I'm not sure you were just joking let me finish with my opinion:
Unless the correct answer is 42 it certainly is 26.

Janis
Re: Case-Sensitivity (was Re: Taming The Switch-Statement)
#957
Author: Blaine
Date: Wed, 28 Oct 2026 16:34
21 lines
2696 bytes
Janis Papanagnou wrote:
> On 2026-10-28 07:26, steve g wrote:
>> Lawrence D’Oliveiro <ldo@nz.invalid> writes:
>>
>>> If asked “how many letters are there in the English alphabet?”, what
>>> answer do you think (normal) people are more likely to give: “26” or
>>> “52”?
>>>

> Since I'm not sure you were just joking let me finish with my opinion:
> Unless the correct answer is 42 it certainly is 26.

Look at this guy just ignore Lawrence's question completely. No evidence 
presented, nothing to support his claim, just hereby making a wrong 
statement. I think we should all kill file this guy. The newsgroup would 
have an improvement, don't you agree?
-- 
Sometimes I just feel like I need to get away
A place where I can be by myself, all alone
I kinda lay down in the back yard
Watch the leaves fall down on my face
Re: Case-Sensitivity (was Re: Taming The Switch-Statement)
#962
Author: fir
Date: Wed, 28 Oct 2026 18:25
21 lines
2694 bytes
Blaine pisze:
> Janis Papanagnou wrote:
>> On 2026-10-28 07:26, steve g wrote:
>>> Lawrence D’Oliveiro <ldo@nz.invalid> writes:
>>>
>>>> If asked “how many letters are there in the English alphabet?”, what
>>>> answer do you think (normal) people are more likely to give: “26” or
>>>> “52”?
>>>>
> 
>> Since I'm not sure you were just joking let me finish with my opinion:
>> Unless the correct answer is 42 it certainly is 26.
> 
> Look at this guy just ignore Lawrence's question completely. No evidence 
> presented, nothing to support his claim, just hereby making a wrong 
> statement. I think we should all kill file this guy. The newsgroup would 
> have an improvement, don't you agree?

i just clownfiled keith thompson..he kilfilled me i can clownfile him

and who is better here?
Re: Case-Sensitivity (was Re: Taming The Switch-Statement)
#963
Author: fir
Date: Wed, 28 Oct 2026 18:35
25 lines
2857 bytes
fir pisze:
> Blaine pisze:
>> Janis Papanagnou wrote:
>>> On 2026-10-28 07:26, steve g wrote:
>>>> Lawrence D’Oliveiro <ldo@nz.invalid> writes:
>>>>
>>>>> If asked “how many letters are there in the English alphabet?”, what
>>>>> answer do you think (normal) people are more likely to give: “26” or
>>>>> “52”?
>>>>>
>>
>>> Since I'm not sure you were just joking let me finish with my opinion:
>>> Unless the correct answer is 42 it certainly is 26.
>>
>> Look at this guy just ignore Lawrence's question completely. No 
>> evidence presented, nothing to support his claim, just hereby making a 
>> wrong statement. I think we should all kill file this guy. The 
>> newsgroup would have an improvement, don't you agree?
> 
> i just clownfiled keith thompson..he kilfilled me i can clownfile him
> 
> and who is better here?

what if i say i automatically clownfile all that killfile me - they 
should be warned :/
Re: Case-Sensitivity (was Re: Taming The Switch-Statement)
#964
Author: fir
Date: Wed, 28 Oct 2026 18:40
30 lines
3061 bytes
fir pisze:
> fir pisze:
>> Blaine pisze:
>>> Janis Papanagnou wrote:
>>>> On 2026-10-28 07:26, steve g wrote:
>>>>> Lawrence D’Oliveiro <ldo@nz.invalid> writes:
>>>>>
>>>>>> If asked “how many letters are there in the English alphabet?”, what
>>>>>> answer do you think (normal) people are more likely to give: “26” or
>>>>>> “52”?
>>>>>>
>>>
>>>> Since I'm not sure you were just joking let me finish with my opinion:
>>>> Unless the correct answer is 42 it certainly is 26.
>>>
>>> Look at this guy just ignore Lawrence's question completely. No 
>>> evidence presented, nothing to support his claim, just hereby making 
>>> a wrong statement. I think we should all kill file this guy. The 
>>> newsgroup would have an improvement, don't you agree?
>>
>> i just clownfiled keith thompson..he kilfilled me i can clownfile him
>>
>> and who is better here?
> 
> what if i say i automatically clownfile all that killfile me - they 
> should be warned :/

though seriously i dont like to put myself on rigid patches so it may be 
temporary (my attitude could change/ be changing ;c)
Page 8 of 9 • 412 total messages
Thread Navigation

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads