This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class Foo { | |
std::move_iterator move_it; | |
int I; | |
public: | |
Foo(const int like_to, const std::move_iterator& move_it) : | |
I(like_to), move_it(move_it) {} | |
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import macros | |
macro callFilter(filter: stmt, value: stmt): expr = | |
if value.kind == nnkStrLit: | |
newStmtList( | |
newNimNode(nnkConstSection).add(newNimNode(nnkConstDef).add(newIdentNode("filtered"), newEmptyNode(), | |
newCall(filter, value))), | |
newIdentNode("filtered")) | |
else: | |
newCall(filter, value) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Makefile to make it work | |
it: | |
@echo > /dev/null | |
work: | |
@echo "aye!" | |
# support for Picard | |
so: | |
@echo "Warp 9 engaged." | |
.PHONY: it work so |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
with Ada.Unchecked_Conversion; | |
with Interfaces.C; | |
with Ada.Text_IO; | |
procedure Foo is | |
type Bar is (Kol, Ra, Bi); | |
for Bar use (Kol => 1, Ra => 2, Bi => 3); | |
for Bar'Size use Interfaces.C.int'Size; | |
subtype Cocktail_Bar is Bar range Kol .. Ra; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package Foo is | |
end Foo; | |
package Foo.Bar is | |
type Hurz is (Kol, Ra, Bi); | |
for Hurz use (Kol => 1, Ra => 2, Bi => 3); | |
end Foo.Bar; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
with Interfaces.C; | |
package Whatev is | |
package C renames Interfaces.C; | |
type Vector_Index is (X, Y, Z, W); | |
type Vector is array (Vector_Index range <>) of aliased C.double; | |
pragma Convention (C, Vector); | |
procedure Vertex (Value : Vector); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* concerts | |
*/ | |
class Concert extends ORMBase { | |
/** | |
* INT(10) | |
*/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
aggregate project OpenCLAda is | |
type Toggle is ("Enabled", "Disabled"); | |
GL_Support : Toggle := external ("GL_BINDING"; "Disabled"); | |
case GL_Support is | |
when "Enabled" => | |
for Project_Files use ("openclada_gl_binding.gpr"); | |
when "Disabled" => | |
for Project_Files use ("openclada_core.gpr"); | |
end case; | |
end OpenCLAda; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
FILE "siedler2.iso" BINARY | |
TRACK 01 MODE1/2048 | |
INDEX 01 00:00:00 | |
FILE "track02.ogg" MP3 | |
TRACK 02 AUDIO | |
PREGAP 00:02:00 | |
INDEX 01 00:00:00 | |
FILE "track03.ogg" MP3 | |
TRACK 03 AUDIO | |
INDEX 01 00:00:00 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class A { | |
void method(A someObj) { | |
// .. do something here | |
} | |
} | |
class B extends A { | |
// .. declare something here | |
} |
OlderNewer