Re: Str-Kat

new topic     » goto parent     » topic index » view thread      » older message » newer message

Kat wrote:

> I can write the code as an include, and it might be better left at that. I
> used
> a lot of pointers to strings in TurboPascal (making PowerBasic catch my eye)
> and lots of pchars, so doing the same in Eu would be fairly easy. Btw, people
> rallied against pointers too. Pointers seem real un-Eu-like, apparently, and
> i wouldn't release code that has them, i been flamed for my code enough
> already,
> even recently.
> 
> I even left #Euphoria for CK's pleasure. He still isn't satisfied, as you can
> see.

The asbestos underwear does come in handy at times.

I never really understood why pointers are so bad, they're just an address
in memory.  You can get carried away with pointers to pointers to pointers
and so forth and I never did like asterisk as a choice of symbol as C
uses.  I always thought @ said address to me, but it's not so much better
either.

PowerBasic ever adds a few more wrinkles because they have more than
pass by value and pass by address (I can't think of what it is right now
but I did find it interesting.)

In my O.T.L. (trademark and EEEVIL patent pending) everything is a function
where the return value can be ignored (doesn't have to be assigned to a
junk variable) Every parameter is passed by address and subs passes back an
address.  As with Euphoria, this allows passing back multiple values.

Which is funny when I think about it cuz I'm really more of a pass by value
kind of guy.  Go figure!

new topic     » goto parent     » topic index » view thread      » older message » newer message

Search



Quick Links

User menu

Not signed in.

Misc Menu