summaryrefslogtreecommitdiffhomepage
path: root/hi-in
diff options
context:
space:
mode:
authorBoris Verkhovskiy <boris.verk@gmail.com>2024-05-12 05:55:20 -0600
committerBoris Verkhovskiy <boris.verk@gmail.com>2024-05-12 05:55:20 -0600
commit4be8105b1f475842e77ca80bbe2de235b824c23a (patch)
tree8b46f225858c5a850dae12651a6b1c5f3ba16481 /hi-in
parent4f2054b2cb492b3d4040e3ea781ae0f7f7fb4e27 (diff)
[d/*] highlight as D
Diffstat (limited to 'hi-in')
-rw-r--r--hi-in/d.html.markdown12
1 files changed, 6 insertions, 6 deletions
diff --git a/hi-in/d.html.markdown b/hi-in/d.html.markdown
index 8809c87e..b410b7fd 100644
--- a/hi-in/d.html.markdown
+++ b/hi-in/d.html.markdown
@@ -6,7 +6,7 @@ contributors:
lang: hi-in
---
-```c
+```d
//क्या आ रहा है पता है ...
module hello;
@@ -27,7 +27,7 @@ D सक्रिय रूप से सुपर स्मार्ट लो
[आंद्रेई Alexandrescu](https://en.wikipedia.org/wiki/Andrei_Alexandrescu)।
जिस तरह की है कि सभी के साथ बाहर, चलो कुछ उदाहरणों पर गौर करते हैं!
-```c
+```d
import std.stdio;
void main() {
@@ -70,7 +70,7 @@ void main() {
मूल्य से कार्य करने के लिए पारित कर रहे हैं (यानी नकल) और वर्गों के संदर्भ द्वारा पारित कर रहे हैं। इसके अलावा,
हम प्रकारों और मानों दोनों पर करने के लिए टेम्पलेट का उपयोग कर सकते हैं!
-```c
+```d
// इधर, 'T' एक प्रकार पैरामीटर है। लगता है कि '&lt;+T&gt;' C++ / C/ Java से।
struct LinkedList(T) {
T data = null;
@@ -132,7 +132,7 @@ Classes की बात हो रही है , एक दूसरे के
के शब्दों के साथ पॉड संरचनाओं की वाक्य रचना (`structure.x = 7`) है
मनुष्य और सेटर तरीकों (`object.setX(7)`) !
-```c
+```d
// Consider a class parameterized on types 'T' & 'U'.
class MyClass(T, U) {
T _data;
@@ -206,7 +206,7 @@ void main() {
कार्यात्मक एल्गोरिदम ( नक्शा, फिल्टर , कम करने और मित्र हो सकते हैं)
अद्भुत `std.algorithm` मॉड्यूल में पाया!
-```c
+```d
import std.algorithm : map, filter, reduce;
import std.range : iota; // builds an end-exclusive range
@@ -234,7 +234,7 @@ UFCS के साथ, हम एक विधि के रूप में ए
मैं समानता चाहते । समानता की तरह कोई और? ज़रूर तुम करना। चलो कुछ करते हैं!
-```c
+```d
import std.stdio;
import std.parallelism : parallel;
import std.math : sqrt;