Return Styles: Pseud0ch, Terminal, Valhalla, NES, Geocities, Blue Moon.

Pages: 1-

Hat does this C declaration means

Name: Anonymous 2011-12-02 7:04

int (*(*)())()

Name: Anonymous 2011-12-02 7:10

It's the set of all functions which take a void function with no arguments and returns an int.

Name: Anonymous 2011-12-02 7:10

Pointer to a function that takes no parameters and returns a pointer to a function that takes no parameters and returns an integer.

Name: Anonymous 2011-12-02 9:01

>>2
>>3

would:

int (*(*)())myfunction()

-or-

int (*(*)myfunction())()

return the correct int value of the function, "myfunction()"??

Name: F r o z e n V o i d !!mJCwdV5J0Xy2A21 2011-12-02 9:11

I call this code "Lisp variables" because its as cryptic as nested lisp functions, without even giving any names.

Name: Anonymous 2011-12-02 9:24

>>5
Only a shitty programmer would think lisp is cryptic

Name: Anonymous 2011-12-02 9:30

>>6
Thank you, Captain Obvious. You are talking to Frozen Void here.

Name: F r o z e n V o i d !!mJCwdV5J0Xy2A21 2011-12-02 9:31

>>6
A single line of Lisp isn't cryptic, but couple of such lines, plus abuse of recursion and lack of any form of syntax make it cryptic as whole.
I could understand Lisp if i forced myself, but this is like deciphering some Amazonian tribe intricate whistling language which you can't replicate at will despite whistling not being that complex.

Name: Anonymous 2011-12-02 9:39

>>8
Recursion is elegance.

Its to deep for your puny brain

Name: Anonymous 2011-12-02 9:39

>>8
Thank you for your input, Frozen "indentation distracts from the code" Void.

Name: Anonymous 2011-12-02 9:40

Lisp is shit.

Name: Anonymous 2011-12-02 9:42

>>10
To be honest, indentation makes the code look uneven and thrown all over the place. Same with needless semicolons and tons of braces.
That's why I adopted the following code style for languages with the C syntax: http://pastebin.com/HBgwcnpd

Name: F r o z e n V o i d !!mJCwdV5J0Xy2A21 2011-12-02 9:43

>>9
Elegance as "i can write it shorter" is not elegance(its representational juggling for ease of programmer)
"Elegant"  recursion resulting executing code is much longer, more resource intensive and requires extensive optimizations to get even within an order of magnitude to "impure" iterative solutions.

Name: Anonymous 2011-12-02 9:46

>>13
You don't know what elegance means clearly. Once again,  too deep for you to understand

Name: Anonymous 2011-12-02 9:48

>>12
Way to take java and make it look even more shitty

Name: Anonymous 2011-12-02 9:50

>>15
Just because you're not used to that style, it doesn't mean it's shit.
For example, look at the semicolons and curly braces. One might say that they're strangely placed, but that's the point: by removing them from the main code, I stack them on the left so that the code as whole is more beautiful.
It looks almost like a book page (if only the lines were about the same length...), how could that be shitty?

Name: Anonymous 2011-12-02 9:53

>>16
It looks like ass and doesn't show the flow of the code

Name: F r o z e n V o i d !!mJCwdV5J0Xy2A21 2011-12-02 9:56

>>14
You're appreciating the form, while i appreciate the function.
Elegant form may seem elegant representationaly, elegant function is not so apparent in design.

Name: Anonymous 2011-12-02 9:58

>>18
Efficiency is not the same as elegance

Name: Anonymous 2011-12-02 10:02

>>17
Flow?
Is ``flow'' when your code is all over the screen, its syntax looking almost like Perl?
My style's flow is far more clear. The first letter tells you about scope change: { is a new scope, } is exit from the previous one, ; is no change. A mostly blank line (with only a ;) also notifies you about scope exit.
The code itself looks clear. It isn't cluttered by curly braces and semicolons, statements always end at the newline. The lines aren't randomly indented all around and don't look like damn hills and valleys. It's far more beautiful than most other C code styles I've seen so far.

Name: F r o z e n V o i d !!mJCwdV5J0Xy2A21 2011-12-02 10:06

>>19
Efficiency combined with clarity is elegant. Clarity alone is "textual elegance", fit more for poetry rather than code.

Name: Anonymous 2011-12-02 10:11

>>13
Elegance as "i can write it shorter" is not elegance(its representational juggling for ease of programmer)
"Elegant"  recursion resulting executing code is much longer ...
Shit for brains.

Name: F r o z e n V o i d !!mJCwdV5J0Xy2A21 2011-12-02 10:15

>>22
You can't see how your neglect of efficiency for better abstract representation makes the code executing longer?
Is your elegance so deeply ingrained, its painful to see its flaws?

Name: Anonymous 2011-12-02 10:40

>>23
No, your English is broken.

Name: Anonymous 2011-12-02 10:40

N>>22
>>22
expecting frozen factor to make any sense

Name: Anonymous 2011-12-02 11:49

>>13
Void why do you make such smart posts at times and then go ahead and post something that is completely aspie?

Name: F r o z e n V o i d !!mJCwdV5J0Xy2A21 2011-12-02 11:54

>>26
You don't seem to grasp there are casual discussions and serious posts at the same time.
What you think of as "aspie" posts are just casual discussion and i normally communicate like this.
What you think of "smart" posts are serious replies, sometimes inside a casual discussion if i feel like it.
/prog/ is not some secluded and moderated usenet group for "smart posts".

Name: Anonymous 2011-12-02 11:55

Frozen or not, anyone who doesn't agrees with 13 is a talentless goy.

Name: Anonymous 2011-12-02 12:05

>>5
if you hate lisp so much then why do you brag about javascript

Name: F r o z e n V o i d !!mJCwdV5J0Xy2A21 2011-12-02 12:07

>>29
If you hate COBOL so much why do brag about Java?

Name: Anonymous 2011-12-02 12:14

>>30                                `
>brag about Java

No one does that.

Name: Anonymous 2011-12-02 12:17

>>31
Greentexting.
No.

Name: Anonymous 2011-12-02 12:27

>>28
you forgot to put in your name frozenfaggot

Don't change these.
Name: Email:
Entire Thread Thread List